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
1e40e0c0
Commit
1e40e0c0
authored
Dec 10, 2018
by
Alexander Pivovarov
Committed by
Yizhi Liu
Dec 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow long type values in shape list (#1806)
* Allow long type values in shape list * Update build_module.py
parent
e62d909a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
nnvm/python/nnvm/compiler/build_module.py
+2
-2
No files found.
nnvm/python/nnvm/compiler/build_module.py
View file @
1e40e0c0
...
...
@@ -251,8 +251,8 @@ def build(graph, target=None, shape=None, dtype="float32",
if
not
isinstance
(
shape
,
dict
):
raise
TypeError
(
"require shape to be dict"
)
for
value
in
shape
.
values
():
if
not
all
(
isinstance
(
x
,
int
)
for
x
in
value
):
raise
TypeError
(
"shape value must be
int
iterator"
)
if
not
all
(
isinstance
(
x
,
tvm
.
_ffi
.
base
.
integer_types
)
for
x
in
value
):
raise
TypeError
(
"shape value must be
Integer types
iterator"
)
cfg
=
BuildConfig
.
current
graph
=
graph
if
isinstance
(
graph
,
_graph
.
Graph
)
else
_graph
.
create
(
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