when i run this script, i meet the same error as "ValueError: value has to be scalar or NDArray". But I didn't know why and how to fix it > Traceback (most recent call last): > File "run.py", line 12, in <module> > mod, params = relay.frontend.from_pytorch(traced_token_predictor, inputs, > default_dtype="int64") > File "/home/zqh/tvm-v0.10.0/python/tvm/relay/frontend/pytorch.py", line > 4554, in from_pytorch > outputs = converter.convert_operators(_get_operator_nodes(graph.nodes()), > outputs, ret_name) > File "/home/zqh/tvm-v0.10.0/python/tvm/relay/frontend/pytorch.py", line > 3928, in convert_operators > relay_out = relay_op( > File "/home/zqh/tvm-v0.10.0/python/tvm/relay/frontend/pytorch.py", line > 769, in full > return self.full_impl(data, fill_value, dtype) > File "/home/zqh/tvm-v0.10.0/python/tvm/relay/frontend/pytorch.py", line > 675, in full_impl > out = _op.full(_expr.const(fill_value, dtype=dtype), size, dtype=dtype) > File "/home/zqh/tvm-v0.10.0/python/tvm/relay/expr.py", line 517, in const > raise ValueError("value has to be scalar or NDArray") > ValueError: value has to be scalar or NDArray
--- [Visit Topic](https://discuss.tvm.apache.org/t/question-how-tvm-run-text-generation-model-like-gpt2/14221/24) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/24d0807f37d575fd95dcc51a81e85a929f527f511cacf72c333a612b727c2aee).