Skip to content

Commit

Permalink
[nnvm] fix nnvm compiler build module error (apache#3378)
Browse files Browse the repository at this point in the history
  • Loading branch information
Howave authored and wweic committed Jun 27, 2019
1 parent 0842d4e commit 1069eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nnvm/python/nnvm/compiler/build_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def _update_shape_dtype(shape, dtype, params):
shape.update({k : v.shape for k, v in params.items()})
if isinstance(dtype, str):
for k, v in params.items():
if v.dtype != dtype:
if v.dtype != dtype and v.shape:
raise ValueError(
"%s: dtype not expected %s vs %s" % (k, dtype, v.dtype))
else:
Expand Down

0 comments on commit 1069eee

Please sign in to comment.