Skip to content

Commit

Permalink
fix bug when converting constant nodes with types of int64 or float64 (
Browse files Browse the repository at this point in the history
…apache#6159)

Co-authored-by: yuweilong <yuweilong03@meituan.com>
  • Loading branch information
2 people authored and Trevor Morris committed Aug 26, 2020
1 parent 4533b78 commit 33d4f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/frontend/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2835,7 +2835,7 @@ def _parse_param(self, key, value, name, shape):

array_ndim = len(np_array.shape)
if array_ndim == 0:
self._nodes[name] = [tvm.relay.const(np_array)]
self._nodes[name] = [tvm.relay.const(np_array, np_array.dtype)]
else:
self._params[name] = tvm.nd.array(np_array)
self._nodes[name] = [_expr.var(name,
Expand Down

0 comments on commit 33d4f68

Please sign in to comment.