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
70231011
Commit
70231011
authored
Jan 30, 2018
by
ziheng
Committed by
Tianqi Chen
May 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Fix target in tutorial (#347)
parent
eb9442e0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
nnvm/tutorials/deploy_model_on_rasp.py
+3
-6
No files found.
nnvm/tutorials/deploy_model_on_rasp.py
View file @
70231011
...
...
@@ -177,14 +177,11 @@ out_shape = (batch_size, num_classes)
# Pi, which has been proved as a good compilation configuration.
if
use_rasp
:
target
=
"llvm -target=armv7l-none-linux-gnueabihf -mcpu=cortex-a53 -mattr=+neon"
target
=
tvm
.
target
.
rasp
()
else
:
target
=
"llvm"
target
=
tvm
.
target
.
create
(
'llvm'
)
# use `with tvm.target.rasp` for some target-specified optimization
with
tvm
.
target
.
rasp
():
graph
,
lib
,
params
=
nnvm
.
compiler
.
build
(
graph
,
lib
,
params
=
nnvm
.
compiler
.
build
(
net
,
target
,
shape
=
{
"data"
:
data_shape
},
params
=
params
)
# After `nnvm.compiler.build`, you will get three return values: graph,
...
...
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