Hi,
When transfer my onnx model to IR with relay.frontend.from_onnx() in tvm, Something wrong with its upsampling op.
the error log is as below:
Traceback (most recent call last):
File "onnx_to_tvm.py", line 47, in <module>
mod, params = relay.frontend.from_onnx(model, shape_dict, freeze_params=True)
File "/code/tvm/python/tvm/relay/frontend/onnx.py", line 4044, in from_onnx
mod, params = g.from_onnx(graph, opset)
File "/code/tvm/python/tvm/relay/frontend/onnx.py", line 3817, in from_onnx
op = self._convert_operator(op_name, inputs, attr, opset)
File "/code/tvm/python/tvm/relay/frontend/onnx.py", line 3946, in _convert_operator
sym = convert_map[op_name](inputs, attrs, self._params)
File "/code/tvm/python/tvm/relay/frontend/onnx.py", line 1342, in _impl_v9
out = _op.nn.upsampling(
File "/code/tvm/python/tvm/relay/op/nn/nn.py", line 1351, in upsampling
return _make.upsampling(data, scale_h, scale_w, layout, method, align_corners)
File "/code/tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 223, in __call__
values, tcodes, num_args = _make_tvm_args(args, temp_args)
File "/code/tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 188, in _make_tvm_args
raise TypeError("Don't know how to handle type %s" % type(arg))
TypeError: Don't know how to handle type <class 'numpy.ndarray'>
TVM version in our server is 0.8.0 onnx version is 1.10.2. I ever tried to install onnx==0.4.0, but failed, seems python version a little high as 3.8.x.
Is there any other ways to solve this issue? thanks.