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
3ae9e155
Commit
3ae9e155
authored
Jun 28, 2018
by
Thierry Moreau
Committed by
Tianqi Chen
Jul 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DOC, TVM] ResNet tutorial, updated TVM (#51)
parent
5739acab
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
7 deletions
+2
-7
vta/examples/resnet18/pynq/imagenet_predict.py
+1
-6
vta/tests/python/integration/test_benchmark_topi_conv2d.py
+1
-1
vta/tutorials/convolution_opt.py
+0
-0
No files found.
vta/examples/resnet18/pynq/imagenet_predict.py
View file @
3ae9e155
...
...
@@ -20,7 +20,7 @@ verbose = False
# only run fpga component, mark non-conv ops as nop
debug_fpga_only
=
False
# Obtain model
and hardware
files (they're too large to check-in)
# Obtain model files (they're too large to check-in)
# Download them into _data dir
data_dir
=
"_data/"
url
=
"https://homes.cs.washington.edu/~moreau/media/vta/"
...
...
@@ -115,11 +115,6 @@ sym = vta.graph.clean_conv_fuse(sym)
if
target
.
device_name
==
"vta"
:
sym
=
vta
.
graph
.
pack
(
sym
,
shape_dict
,
bfactor
,
cfactor
)
graph_attr
.
set_shape_inputs
(
sym
,
shape_dict
)
sym
=
sym
.
apply
(
"InferShape"
)
graph_attr
.
set_dtype_inputs
(
sym
,
dtype_dict
)
sym
=
sym
.
apply
(
"InferType"
)
with
nnvm
.
compiler
.
build_config
(
opt_level
=
3
):
if
target
.
device_name
!=
"vta"
:
graph
,
lib
,
params
=
nnvm
.
compiler
.
build
(
...
...
vta/tests/python/integration/test_benchmark_topi_conv2d.py
View file @
3ae9e155
...
...
@@ -38,7 +38,7 @@ def test_vta_conv2d():
res_conv
=
vta
.
top
.
packed_conv2d
(
data
,
kernel
,
padding
=
(
wl
.
hpad
,
wl
.
wpad
),
strides
=
(
wl
.
hstride
,
wl
.
wstride
))
res
=
topi
.
right_shift
(
res_conv
,
8
)
res
=
topi
.
add
(
res
,
bias
)
res
=
topi
.
broadcast_
add
(
res
,
bias
)
res
=
my_clip
(
res
,
0
,
127
)
res
=
topi
.
cast
(
res
,
"int8"
)
...
...
vta/tutorials/convolution_opt.py
0 → 100644
View file @
3ae9e155
This diff is collapsed.
Click to expand it.
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