-
Notifications
You must be signed in to change notification settings - Fork 438
Bad Min conversion? #579
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
Comments
@vadimkantorov wav2letter seems to be a public model, would you mind share with me the link to download it? |
@vadimkantorov Min of opset >= 8 supports broadcasting so we don't need to do something like |
Here is the onnx file that I got using my conversion script (using tf2onnx under the hood): |
@vadimkantorov Thanks for the detailed info. |
@lucienwang1009 I understand the different ways of conversion for opset7 and opset10. I was just worried that value = 20 was not visible in Netron visualizer (when converted for opset10). But if you say it's present in the onnx graph, then please feel free to close this issue. Anyway currently I'm blocked with tf2onnx usage by: #572 and #571 (TensorFlow uses BatchToSpaceND for representing dilated convolutions). Also Min(ReLU(x), const) could be rewritten as onnx.Clip(0, const) op, but it's a minor issue. Thanks! |
@vadimkantorov Thanks for a deal of feedback :) We will deal with them soon. For optimization enhancement, please feel free to file an issue. |
I'm trying to convert the openseq2seq's wav2letter model. It has

tf.min(tf.relu(x), 20)
activation function.With default opset = 7 it looks like:
In the source it is explained that it does sth like:
min(x -x + 20, x)
in order to implement broadcasting. Note that value = 20 is present in the graph.With opset = 10 it looks like:

Note that
20
is no longer present in node properties. Instead it refers to someForwardPass/w2l_encoder/Minimum/y:0
. I inspected it and it also does not contain the related attributes:The text was updated successfully, but these errors were encountered: