Frontend.from_onnx causes error: Expected Array[IntImm], but got relay.Var

Hi everybody,

I have an onnx model that I want to import into tvm. For the following snippet code I’ve got the error:

...
shape_dict = {'input_16': (1,128,3)}
onnx_model = onnx.load('./mymodel.onnx')
sym, params = relay.frontend.from_onnx(onnx_model,shape_dict)

Error: Check failed: !checked_type.defined() == false: Expected Array[IntImm], but got relay.Var

Do you have any idea about the error I’ve got from onnx frontend? I couldn’t find any similar issue in the forum.

Thanks in advance

1 Like

Hello, Do you have any updates for this issue?