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
3fb937fe
Unverified
Commit
3fb937fe
authored
Feb 04, 2020
by
Tianqi Chen
Committed by
GitHub
Feb 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DOCS] Fix vta tutorial (#4809)
parent
6f7d6fa4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
tests/scripts/task_python_docs.sh
+1
-0
vta/tutorials/autotvm/tune_relay_vta.py
+5
-4
No files found.
tests/scripts/task_python_docs.sh
View file @
3fb937fe
...
...
@@ -25,6 +25,7 @@ rm -rf docs/_build/html/javadoc
# remove stale tutorials and always build from scratch.
rm
-rf
docs/tutorials
rm
-rf
docs/vta/tutorials
# C++ doc
make doc
...
...
vta/tutorials/autotvm/tune_relay_vta.py
View file @
3fb937fe
...
...
@@ -165,7 +165,7 @@ def compile_network(env, target, model, start_pack, stop_pack):
# ----------------------------------
# key total free pending
# ----------------------------------
# pynq 6 6 0
# pynq 6 6 0
# rpi3b 11 11 0
# ----------------------------------
#
...
...
@@ -223,7 +223,7 @@ tuning_option = {
# .. note:: How to set tuning options
#
# In general, the default values provided here work well.
# If you have enough time budget, you can set :code:`n_trial`, :code:`early_stopping`
# If you have enough time budget, you can set :code:`n_trial`, :code:`early_stopping`
# to larger values, makes the tuning run for longer.
# If your device is under-powered or your conv2d operators are large, consider
# setting a longer timeout.
...
...
@@ -348,12 +348,13 @@ def tune_and_evaluate(tuning_opt):
# Perform task extraction on Relay program
print
(
"Extract tasks..."
)
relay_prog
,
params
=
compile_network
(
env
,
target
,
network
,
start_pack
,
stop_pack
)
tasks
=
autotvm
.
task
.
extract_from_program
(
func
=
relay_prog
,
mod
=
relay
.
Module
.
from_expr
(
relay_prog
)
tasks
=
autotvm
.
task
.
extract_from_program
(
mod
,
params
=
params
,
ops
=
(
tvm
.
relay
.
op
.
nn
.
conv2d
,),
target
=
target
,
target_host
=
env
.
target_host
)
# We should have extracted 10 convolution tasks
assert
len
(
tasks
)
==
10
print
(
"Extracted {} conv2d tasks:"
.
format
(
len
(
tasks
)))
...
...
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