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
…#6159)

Co-authored-by: yuweilong <[email protected]>
  • Loading branch information
sleepwalker2017 and yuweilong authored Jul 29, 2020
1 parent 39c7036 commit 2ce1193
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 2ce1193

Please sign in to comment.