Hi All,
Previously, we had an error in importing onnx file on Windows, and that bug was fixed (See here: Onnx frontend giving an error when working a simple model with TVM). Unfortunately, I am getting another issue. The problem is my code works on Linux and it gives the following error on Windows. I will not be able to share the onnx model or the code. Basically, it is an error at the following line. Windows complains incompatible types, but the linux does work perfectly. Any suggestions @rkimball @mbrookhart ?
mod, params = relay.frontend.from_onnx(onnxmodel, shape_dict)
Here is the errror message.
Incompatible broadcast type TensorType([1, 192, 160, 96], float32) and TensorType([1, ?, (161 - ?), (97 - ?)], float32)
The type inference pass was unable to infer a type for this expression.
This usually occurs when an operator call is under constrained in some way, check other reported errors for hints of what may of happened.
Traceback (most recent call last):
File "C:\repos\tvm23\tvm\python\tvm\relay\frontend\onnx.py", line 3083, in from_onnx
mod, params = g.from_onnx(graph, opset, freeze_params)
File "C:\repos\tvm23\tvm\python\tvm\relay\frontend\onnx.py", line 2899, in from_onnx
op = self._convert_operator(op_name, inputs, attr, opset)
File "C:\repos\tvm23\tvm\python\tvm\relay\frontend\onnx.py", line 2998, in _convert_operator
sym = convert_map[op_name](inputs, attrs, self._params)
File "C:\repos\tvm23\tvm\python\tvm\relay\frontend\onnx.py", line 452, in _impl_v1
input_shape = infer_shape(data)
File "C:\repos\tvm23\tvm\python\tvm\relay\frontend\common.py", line 506, in infer_shape
out_type = infer_type(inputs, mod=mod)
File "C:\repos\tvm23\tvm\python\tvm\relay\frontend\common.py", line 487, in infer_type
new_mod = _transform.InferType()(new_mod)
File "C:\repos\tvm23\tvm\python\tvm\ir\transform.py", line 127, in __call__
return _ffi_transform_api.RunPass(self, mod)
File "C:\repos\tvm23\tvm\python\tvm\_ffi\_ctypes\packed_func.py", line 237, in __call__
raise get_last_ffi_error()
tvm.error.DiagnosticError: Traceback (most recent call last):
File "C:\repos\tvm23\tvm\src\ir\diagnostic.cc", line 105
DiagnosticError: one or more error diagnostics were emitted, please check diagnostic render for output.
Process finished with exit code 1