Open chan4cc opened 3 years ago
Before this, I opened microsoft/onnxruntime#7338.
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
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 usetf.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