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
585bd1ca
Commit
585bd1ca
authored
Oct 17, 2018
by
Tatsuya Nishiyama
Committed by
Tianqi Chen
Oct 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dtype option to verify_mxnet_frontend_impl (#1908)
parent
f01cc0e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
nnvm/tests/python/frontend/mxnet/test_forward.py
+1
-2
No files found.
nnvm/tests/python/frontend/mxnet/test_forward.py
View file @
585bd1ca
...
...
@@ -14,7 +14,7 @@ import model_zoo
def
verify_mxnet_frontend_impl
(
mx_symbol
,
data_shape
=
(
1
,
3
,
224
,
224
),
out_shape
=
(
1
,
1000
),
gluon_impl
=
False
,
name
=
None
):
gluon_impl
=
False
,
name
=
None
,
dtype
=
'float32'
):
"""Use name different from test to avoid let nose pick it up"""
if
gluon_impl
:
def
get_gluon_output
(
name
,
x
):
...
...
@@ -57,7 +57,6 @@ def verify_mxnet_frontend_impl(mx_symbol, data_shape=(1, 3, 224, 224), out_shape
return
out
.
asnumpy
()
# random input
dtype
=
'float32'
x
=
np
.
random
.
uniform
(
size
=
data_shape
)
if
gluon_impl
:
gluon_out
,
gluon_sym
=
get_gluon_output
(
name
,
x
)
...
...
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