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
Use the timm repository generate the onnx file, and use onnx function shape inference ( infer_shapes ), the flatten operator and expand operater appear the unknown value in tensor dim , Input is static [1 ,3, 224, 224].
System information
OS Platform and Distribution (e.g. Linux Ubuntu 20.04):Linux Ubuntu 20.04
The expand and flatten operator should appear output shape , not unknow dim value.
Another question
The flatten opearor surported in opset_version[21, 13, 11, 9, 1], why when i use 17 opset version, the flatten operator decompose (shape/ slice/ concat/ reshape ) operator, i think it should be a fusion operator. Expand operator also appear this situation, it decompose of ( Mul Equal Where ) base operators.
The text was updated successfully, but these errors were encountered:
This case is tricky because shape inference requires the evaluation of nodes manipulating shapes. shape inference is implemented in C++ and onnx has no runtime in C++, only in python. In your particular case, parameter do_constant_folding is true by default. This part of the graph should have been folded into a constant. This is probably a bug related to torch.onnx.export.
Ask a Question
Describe the question
Use the timm repository generate the onnx file, and use onnx function shape inference ( infer_shapes ), the flatten operator and expand operater appear the unknown value in tensor dim , Input is static [1 ,3, 224, 224].
System information
Reproduction instructions
Expected Behaviors
The expand and flatten operator should appear output shape , not unknow dim value.
Another question
The flatten opearor surported in opset_version[21, 13, 11, 9, 1], why when i use 17 opset version, the flatten operator decompose (shape/ slice/ concat/ reshape ) operator, i think it should be a fusion operator. Expand operator also appear this situation, it decompose of ( Mul Equal Where ) base operators.
The text was updated successfully, but these errors were encountered: