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
dc8fd79c
Commit
dc8fd79c
authored
Dec 25, 2018
by
Wuwei Lin
Committed by
Tianqi Chen
Dec 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[RELAY] Add missing arg in vgg (#2329)
parent
14acb80a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
python/tvm/relay/testing/vgg.py
+6
-2
No files found.
python/tvm/relay/testing/vgg.py
View file @
dc8fd79c
...
...
@@ -98,7 +98,8 @@ def get_workload(batch_size,
num_classes
=
1000
,
image_shape
=
(
3
,
224
,
224
),
dtype
=
"float32"
,
num_layers
=
11
):
num_layers
=
11
,
batch_norm
=
False
):
"""Get benchmark workload for VGG nets.
Parameters
...
...
@@ -118,6 +119,9 @@ def get_workload(batch_size,
num_layers : int
Number of layers for the variant of vgg. Options are 11, 13, 16, 19.
batch_norm : bool
Use batch normalization.
Returns
-------
net : nnvm.Symbol
...
...
@@ -126,5 +130,5 @@ def get_workload(batch_size,
params : dict of str to NDArray
The parameters.
"""
net
=
get_net
(
batch_size
,
image_shape
,
num_classes
,
dtype
,
num_layers
)
net
=
get_net
(
batch_size
,
image_shape
,
num_classes
,
dtype
,
num_layers
,
batch_norm
)
return
create_workload
(
net
)
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