I installed tvm (0.14.dev0) on wsl2. I use this script to replace parts of the above code in order to generate the text, but it throws out an error:
Traceback (most recent call last):
File “text_generation.py”, line 48, in
mod, params = relay.frontend.from_pytorch(traced_token_predictor, inputs, default_dtype=“int64”)
File “/home/username/tvm/python/tvm/relay/frontend/pytorch.py”, line 5021, in from_pytorch
outputs = converter.convert_operators(operator_nodes, outputs, ret_name)
File “/home/username/tvm/python/tvm/relay/frontend/pytorch.py”, line 4274, in convert_operators
relay_out = relay_op(
File “/home/username/tvm/python/tvm/relay/frontend/pytorch.py”, line 2013, in matmul
batch_shape[i] = max(batch_shape[i], j)
File “/home/username/tvm/python/tvm/tir/expr.py”, line 186, in bool
return self.nonzero()
File “/home/username/tvm/python/tvm/tir/expr.py”, line 180, in nonzero
raise ValueError(
ValueError: Cannot use and / or / not operator to Expr, hint: use tvm.tir.all / tvm.tir.any instead
how can I solve this problem? I searched the bug error but did not get useful information. could you give me some suggestions?