diff --git a/python/tvm/relay/frontend/tensorflow.py b/python/tvm/relay/frontend/tensorflow.py index aa62702b2214..a06b0ca425cf 100644 --- a/python/tvm/relay/frontend/tensorflow.py +++ b/python/tvm/relay/frontend/tensorflow.py @@ -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,