Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
4c9729bf
Commit
4c9729bf
authored
Jul 18, 2019
by
Thierry Moreau
Committed by
Tianqi Chen
Jul 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoiding cast None to int errors (#3578)
parent
3d7da362
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
vta/scripts/tune_conv2d.py
+2
-2
vta/scripts/tune_dense.py
+2
-2
vta/scripts/tune_resnet.py
+2
-2
vta/scripts/tune_resnet_nnvm.py
+2
-2
vta/tutorials/frontend/deploy_resnet_on_vta.py
+2
-2
No files found.
vta/scripts/tune_conv2d.py
View file @
4c9729bf
...
...
@@ -91,7 +91,7 @@ if __name__ == '__main__':
# Get tracker info from env
tracket_host
=
os
.
environ
.
get
(
"TVM_TRACKER_HOST"
,
None
)
tracket_port
=
int
(
os
.
environ
.
get
(
"TVM_TRACKER_PORT"
,
None
)
)
tracket_port
=
os
.
environ
.
get
(
"TVM_TRACKER_PORT"
,
None
)
if
not
tracket_host
or
not
tracket_port
:
print
(
"Set your AutoTVM tracker node host and port variables to run the autotuner"
)
exit
()
...
...
@@ -118,7 +118,7 @@ if __name__ == '__main__':
measure_option
=
autotvm
.
measure_option
(
builder
=
autotvm
.
LocalBuilder
(
build_func
=
vta
.
vta_autotvm_build_func
),
runner
=
autotvm
.
RPCRunner
(
env
.
TARGET
,
tracket_host
,
tracket_port
,
number
=
4
,
repeat
=
3
,
timeout
=
10000
,
runner
=
autotvm
.
RPCRunner
(
env
.
TARGET
,
tracket_host
,
int
(
tracket_port
)
,
number
=
4
,
repeat
=
3
,
timeout
=
10000
,
check_correctness
=
True
))
tuner
=
autotvm
.
tuner
.
RandomTuner
(
task
)
...
...
vta/scripts/tune_dense.py
View file @
4c9729bf
...
...
@@ -75,7 +75,7 @@ if __name__ == '__main__':
# Get tracker info from env
tracket_host
=
os
.
environ
.
get
(
"TVM_TRACKER_HOST"
,
None
)
tracket_port
=
int
(
os
.
environ
.
get
(
"TVM_TRACKER_PORT"
,
None
)
)
tracket_port
=
os
.
environ
.
get
(
"TVM_TRACKER_PORT"
,
None
)
if
not
tracket_host
or
not
tracket_port
:
print
(
"Set your AutoTVM tracker node host and port variables to run the autotuner"
)
exit
()
...
...
@@ -93,7 +93,7 @@ if __name__ == '__main__':
measure_option
=
autotvm
.
measure_option
(
builder
=
autotvm
.
LocalBuilder
(
build_func
=
vta
.
vta_autotvm_build_func
),
runner
=
autotvm
.
RPCRunner
(
env
.
TARGET
,
tracket_host
,
tracket_port
,
number
=
4
,
repeat
=
3
,
timeout
=
10000
,
runner
=
autotvm
.
RPCRunner
(
env
.
TARGET
,
tracket_host
,
int
(
tracket_port
)
,
number
=
4
,
repeat
=
3
,
timeout
=
10000
,
check_correctness
=
True
))
tuner
=
autotvm
.
tuner
.
RandomTuner
(
task
)
...
...
vta/scripts/tune_resnet.py
View file @
4c9729bf
...
...
@@ -201,7 +201,7 @@ if __name__ == '__main__':
# Get remote from fleet node
tracker_host
=
os
.
environ
.
get
(
"TVM_TRACKER_HOST"
,
None
)
tracker_port
=
int
(
os
.
environ
.
get
(
"TVM_TRACKER_PORT"
,
None
)
)
tracker_port
=
os
.
environ
.
get
(
"TVM_TRACKER_PORT"
,
None
)
if
not
tracker_host
or
not
tracker_port
:
print
(
"Set your AutoTVM tracker node host and port variables to run the autotuner"
)
exit
()
...
...
@@ -213,7 +213,7 @@ if __name__ == '__main__':
reconfig_start
=
time
.
time
()
# Get remote from fleet node
remote
=
autotvm
.
measure
.
request_remote
(
env
.
TARGET
,
tracker_host
,
tracker_port
,
timeout
=
10000
)
remote
=
autotvm
.
measure
.
request_remote
(
env
.
TARGET
,
tracker_host
,
int
(
tracker_port
)
,
timeout
=
10000
)
# Reconfigure the JIT runtime and FPGA.
# You can program the FPGA with your own custom bitstream
...
...
vta/scripts/tune_resnet_nnvm.py
View file @
4c9729bf
...
...
@@ -181,7 +181,7 @@ if __name__ == '__main__':
# Get tracker info from env
tracker_host
=
os
.
environ
.
get
(
"TVM_TRACKER_HOST"
,
None
)
tracker_port
=
int
(
os
.
environ
.
get
(
"TVM_TRACKER_PORT"
,
None
)
)
tracker_port
=
os
.
environ
.
get
(
"TVM_TRACKER_PORT"
,
None
)
if
not
tracker_host
or
not
tracker_port
:
print
(
"Set your AutoTVM tracker node host and port variables to run the autotuner"
)
exit
()
...
...
@@ -209,7 +209,7 @@ if __name__ == '__main__':
'measure_option'
:
autotvm
.
measure_option
(
builder
=
autotvm
.
LocalBuilder
(
build_func
=
vta
.
vta_autotvm_build_func
),
runner
=
autotvm
.
RPCRunner
(
env
.
TARGET
,
tracker_host
,
tracker_port
,
runner
=
autotvm
.
RPCRunner
(
env
.
TARGET
,
tracker_host
,
int
(
tracker_port
)
,
number
=
4
,
repeat
=
3
,
timeout
=
60
,
check_correctness
=
True
))
}
...
...
vta/tutorials/frontend/deploy_resnet_on_vta.py
View file @
4c9729bf
...
...
@@ -95,7 +95,7 @@ if env.TARGET not in ["sim", "tsim"]:
# To set up the tracker, you'll need to follow the "Auto-tuning
# a convolutional network for VTA" tutorial.
tracker_host
=
os
.
environ
.
get
(
"TVM_TRACKER_HOST"
,
None
)
tracker_port
=
int
(
os
.
environ
.
get
(
"TVM_TRACKER_PORT"
,
None
)
)
tracker_port
=
os
.
environ
.
get
(
"TVM_TRACKER_PORT"
,
None
)
# Otherwise if you have a device you want to program directly from
# the host, make sure you've set the variables below to the IP of
# your board.
...
...
@@ -104,7 +104,7 @@ if env.TARGET not in ["sim", "tsim"]:
if
not
tracker_host
or
not
tracker_port
:
remote
=
rpc
.
connect
(
device_host
,
device_port
)
else
:
remote
=
autotvm
.
measure
.
request_remote
(
env
.
TARGET
,
tracker_host
,
tracker_port
,
timeout
=
10000
)
remote
=
autotvm
.
measure
.
request_remote
(
env
.
TARGET
,
tracker_host
,
int
(
tracker_port
)
,
timeout
=
10000
)
# Reconfigure the JIT runtime and FPGA.
# You can program the FPGA with your own custom bitstream
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment