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
{{ message }}
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.
In my model build code with tf.keras, there is a tf.einsum op for calculating cosine sim.
And if I use tf.keras.layers.Dot layer to calculate cosine sim, the h5 model was also converted successfully and report cos_sim/dot/l2_normalize_1/Sum_reduce_min : Unrecognized attribute: axes for operator ReduceSum when loading onnx_model to sess
The text was updated successfully, but these errors were encountered:
This converter has worked for me. Although you have to train your model in tensorflow version 2.2, it might not work in other versions. https://github.com/onnx/onnxmltools
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
System information
To Reproduce
h5
model created by tf.keras(tf1.12) to ONNX with code:In my model build code with tf.keras, there is a
tf.einsum
op for calculating cosine sim.And if I use
tf.keras.layers.Dot
layer to calculate cosine sim, theh5
model was also converted successfully and reportcos_sim/dot/l2_normalize_1/Sum_reduce_min : Unrecognized attribute: axes for operator ReduceSum
when loadingonnx_model
tosess
The text was updated successfully, but these errors were encountered: