Skip to content

Commit

Permalink
[nnvm] fix nnvm compiler build module error (#3378)
Browse files Browse the repository at this point in the history
  • Loading branch information
Howave authored and tqchen committed Jun 17, 2019
1 parent 04e8162 commit a748f5f
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 @@ -148,7 +148,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 a748f5f

Please sign in to comment.