You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Partially. PyTorch generates a wrong ONNX model but still onnx.checker did not check it carefully (I use onnx.checker.check_model(mode, full_check=True) to skip wrong models).
Basically, it is Max(<double>[2,2,1,1], <float>[scalar]). The checker returns successfully when checking the model. Maybe there is some missed cases/conditions in the checker.
Hi @ganler,
Thank you for catching this. I can repro this by your example. Yes, I think ideally checker should catch this type mismatch. I will submit a PR to fix this.
Bug Report
Is the issue related to model conversion?
Partially. PyTorch generates a wrong ONNX model but still
onnx.checker
did not check it carefully (I useonnx.checker.check_model(mode, full_check=True)
to skip wrong models).Describe the bug
The minimized model looks like this:
Basically, it is
Max(<double>[2,2,1,1], <float>[scalar])
. The checker returns successfully when checking the model. Maybe there is some missed cases/conditions in the checker.System information
Reproduction instructions
Expected behavior
Should fail but did not. But later this error occurs when using ONNXRuntime.
cc: @jcwchen Thanks!
The text was updated successfully, but these errors were encountered: