I am trying to convert this TensorFlow model to onnx. But I get an error message:
> python -m tf2onnx.convert --saved-model .\spice --output model.onnx --opset 11 --verbose
...
2023-04-08 18:33:10,811 - ERROR - tf2onnx.tfonnx: Tensorflow op [Real: Real] is not supported
2023-04-08 18:33:10,812 - ERROR - tf2onnx.tfonnx: Tensorflow op [Imag: Imag] is not supported
2023-04-08 18:33:10,879 - ERROR - tf2onnx.tfonnx: Unsupported ops: Counter({'Real': 6, 'Imag': 6})
...
ValueError: make_sure failure: Current implementation of RFFT or FFT only allows ComplexAbs as consumer not {'Real', 'Imag'}
Same happens with the TensorFlow Light (tflight) model:
> python -m tf2onnx.convert --opset 16 --tflite .\lite-model_spice_1.tflite --output spice.onnx
...
ValueError: make_sure failure: Current implementation of RFFT or FFT only allows ComplexAbs as consumer not {'Imag', 'Real'}
I am on Windows 11, Python 3.10.10, TensorFlow 2.12
This is my first attempt with TensorFlow / ONNX, so I am unsure where the error comes from.
Questions
- Is it related to TensorFlow, tf2onnx, or the model?
- Would it work with another setup (maybe on Linux or other TF version)?
- How to fix the issue?