keras-onnx icon indicating copy to clipboard operation
keras-onnx copied to clipboard

Currently no support for more than 1 axis for ReverseV2 op

Open jacques1434 opened this issue 5 years ago • 2 comments
trafficstars

Trying to use erosion_2d function of Tensorflow (TF 2.3.0) linked to Dilation2D operation (not implemented in onnx), and I got this error which obviously makes the conversion impossible. Is there a fix for that ?

File "C:\Users\jacques1434\venv\tensorflow2\lib\site-packages\keras2onnx\_builtin.py", line 2392, in convert_tf_reverse
    raise ValueError("Currently no support for more than 1 axis for ReverseV2 op")
ValueError: Currently no support for more than 1 axis for ReverseV2 op

I precise that this occurs with several opsets up to 11. I use keras2onnx 1.7.1 and onnx 1.7.0.

jacques1434 avatar Oct 19 '20 15:10 jacques1434

@buddhapuneeth, is it possible to support axis != 1 case with the existing ONNX operators?

wenbingl avatar Oct 22 '20 17:10 wenbingl

@wenbingl yes, it is possible. We need to reverse_sequence operator only but in need to some manipulations. I can give a try sometime.

buddhapuneeth avatar Oct 22 '20 19:10 buddhapuneeth