-
Notifications
You must be signed in to change notification settings - Fork 433
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
BatchToSpaceND: crops parameter need not be const? #571
Comments
onnx padhttps://github.com/onnx/onnx/blob/master/docs/Operators.md#Pad need padding to an attribute, namely a const. @vadimkantorov the input of identity is a const or not? if yes, you could hack the code to specify its value, also you could wait for our tensorflow_const_folding feature. |
I think it is not const. TensorFlow exports it as applying a shape op and then doing a much of slices and manipulation to it. |
sorry, I located the wrong code line, there is nothing about pad. just looked at the conversion logic of BatchToSpaceND, it looks like we need enhace it, will go back to you later. |
Then there is another question of folding the BatchToSpace + Conv + SpaceToBatch TensorFlow's pattern to a dilated conv. |
Fix incoming in #635 ? |
The related PR was closed because of the lack of CLA, close it for now. |
I'm trying to convert the OpenSeq2Seq's wav2letter model checkpoints from TensorFlow to ONNX.
It contains BatchToSpaceND ops. In this model the
crops
argument is Identity, not Const.However, tfonnx requires
crops
to be Const.The text was updated successfully, but these errors were encountered: