-
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
add subgraph detection for convoluation with dilations > 1 #18
Comments
not sure if I interpret this correctly: I think this has changed, just tested with 1.8 and it has only conv2d: Can't find it in the tensorflow release notes, but I think I recall something after tf-1.5. |
Haven't tried recent latest tensorflow version. We decided to switch to pytorch for our training instead. |
Hi, Looking deeper into the layer definition, I can see _WithSpaceToBatch being used in Convolution in nn_ops.py.. |
SpaceToBatchND is supported via #472 |
Thank you! My bad - indeed it's supported by the latest master - sorry, I missed this update.. Unfortunately, I'm getting another error related to SpaceToBatchND: |
@guschmue This is still an issue for old TensorFlow checkpoints, like NVidia OpenSeq2Seq wav2letter model. Currently it exports a SpaceToBatchND + Conv + BatchToSpaceND subgraph (indeed with a dynamic crop issue #571, fix in #635 ?). The corresponding TfLite transform is in https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/toco/graph_transformations/identify_dilated_conv.cc |
I want to convert tensorflow model (tf version: 1.12) where dilation rate > 1 in many convs into ONNX. I am unable to do so as there is Space To Batch error. Can anyone help me to resolve this issue. Desired ONNX version (1.3.0). |
Tensorflow conv2d with dilations > 1 is in a graph with
SpaceToBatchND -> conv -> BatchtoSpaceND etc.
SpaceToBatchND and BatchtoSpaceND are not supported in onnx, should combine this subgraph to normal conv2d with dilation > 1 operator.
The text was updated successfully, but these errors were encountered: