-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get tensor value: xxx must be Const #746
Comments
try |
Hi @guschmue , I have tried opset 11 and install tf2onnx from master, but still got the same error. And I forget to mention that there's another op keeps telling me the same error, I always get the same result regardless of using opset 11/10/9/8/7 or installing tf2onnx from pypi/master:
|
The error after Could you attach the model you are converting (to ensure the solution works for your scenario)? The |
@Exlsunshine, thanks for sharing the model offline. The Fill operator is updated by #748, and the Expand_Dims operator is addressed by #753 The other fix required is not in TF2ONNX, but in OnnxRuntime, for the Reshape operator. This requires a change in the ONNX spec to make Reshape behave similarly to NumPy and TensorFlow. The current spec has an idiosyncrasy which causes the wrong shape to be produced (e.g. if a tensor of shape The ONNX issue is raised here onnx/onnx#2507. Once that is approved by the community, the required code changes will be made in ONNXRuntime via PR here microsoft/onnxruntime#2656 |
I assume this is fixed with opset-13. |
Describe the bug
I have noticed that
xxx must be const
is a known issue, but I also found a PR which says ONNX has supported dynamic padding, but I still got the following error:Does tf2onnx plan to support dynamic padding?
System information
The text was updated successfully, but these errors were encountered: