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
onnxsim is unable to do shape inference for custom op nodes that are not registered with onnxruntime and their downstream nodes. Making the shape inference work entails detailed C++ work for the custom op. (#284)
Can onnxsim be changed to allowing preserving value_info from the input graph, especially for custom op nodes for which it can't do shape inference? This is helpful especially for cases where input shape is static and the user can easily determine and provide the shape for the custom op outputs in the input model. This way, the user does not need understand how to write the arcane C++ code needed for custom ops.
The text was updated successfully, but these errors were encountered:
jchia
changed the title
Preserve input value_info for custom ops
[Request] Preserve input value_info for custom ops
Apr 3, 2024
onnxsim is unable to do shape inference for custom op nodes that are not registered with onnxruntime and their downstream nodes. Making the shape inference work entails detailed C++ work for the custom op. (#284)
Can onnxsim be changed to allowing preserving value_info from the input graph, especially for custom op nodes for which it can't do shape inference? This is helpful especially for cases where input shape is static and the user can easily determine and provide the shape for the custom op outputs in the input model. This way, the user does not need understand how to write the arcane C++ code needed for custom ops.
The text was updated successfully, but these errors were encountered: