There is an error occured after changed to mod, params = relay.frontend.from_pytorch(traced_token_predictor, inputs, default_dtype="int64")
The value type is tvm.relay.expr.Call
while expected to be scalar or NDArray.
Traceback (most recent call last):
File "test1.py", line 58, in <module>
mod, params = relay.frontend.from_pytorch(traced_token_predictor, inputs)
File "/WORK/Dev/tvm/python/tvm/relay/frontend/pytorch.py", line 4173, in from_pytorch
outputs = converter.convert_operators(_get_operator_nodes(graph.nodes()), outputs, ret_name)
File "/WORK/Dev/tvm/python/tvm/relay/frontend/pytorch.py", line 3547, in convert_operators
relay_out = relay_op(
File "/WORK/Dev/tvm/python/tvm/relay/frontend/pytorch.py", line 750, in full
return self.full_impl(data, fill_value, dtype)
File "/WORK/Dev/tvm/python/tvm/relay/frontend/pytorch.py", line 671, in full_impl
out = _op.full(_expr.const(fill_value, dtype=dtype), size, dtype=dtype)
File "/WORK/Dev/tvm/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