-
Notifications
You must be signed in to change notification settings - Fork 73
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
Error by broadcasting in tf.math.Multiply Operation #698
Comments
Thank you so much for the incredibly quick review and fix! I've confirmed that the model is now working perfectly with 1.25.15 version (manually reflected the changes from PR). |
Dear @PINTO0309, sorry to bother you.
The conversion worked successfully when I revert the changes. Thanks in advance so much! |
I'm sleepy today so I'll check it tomorrow. |
Issue Type
Others
OS
Linux
onnx2tf version number
1.24.1
onnx version number
1.16.1
onnxruntime version number
1.18.1
onnxsim (onnx_simplifier) version number
0.4.33
tensorflow version number
2.16.1
Download URL for ONNX
https://drive.google.com/file/d/1uEzWl53YZVdkWntVouc8Nyv9iWvNVGMw/view?usp=sharing
Parameter Replacement JSON
N/A
Description
Hello,
I'm experiencing an error while trying to convert a model to TFLite using the command below:
Command:
onnx2tf -i 1005_s0_nonar_text_decoder.onnx -o 1005_s0_nonar_text_decoder -odrqt --disable_group_convolution --replace_to_pseudo_operators Erf --replace_argmax_to_reducemax_and_indices_is_int64
The input shape of my model is
[1, 1, 512]
(Batch, 1, hidden_dim), and the output shape is[Batch, 1+N, vocab_size]
.Upon reviewing the following logs:
It seems that while both inputs 1 and 2 for ONNX are correctly
[1, 512, 1, 81]
, input 2 oftf_op
is unexpectedly broadcast to[1, 512, 81, 512]
instead of[1, 1, 81, 512]
.Could you please provide some advice on how to resolve this? Thank you!
The text was updated successfully, but these errors were encountered: