Exporting the operator stft to ONNX opset version 9 is not supported.
See original GitHub issueHi, I try exporting the process of feature extraction to onnx:
import torch
import torchaudio
model = torchaudio.transforms.MelSpectrogram()
x = torch.randn(1, 16000)
torch.onnx.export(model, x, 'tmp.onnx', input_names=['input'], output_names=['output'])
and get:
RuntimeError: Exporting the operator stft to ONNX opset version 9 is not supported. Please open a bug to request ONNX export support for the missing operator.
So will torchaudio add supports operators used in torchaudio.transforms
module in the future? You see that exporting the process of feature extraction and the neural network together will be very convenient.
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:18 (9 by maintainers)
Top Results From Across the Web
Pytorch unable to export trained model as ONNX
export command I get the following error: RuntimeError: Exporting the operator _convolution_mode to ONNX opset version 9 is not supported.
Read more >ONNX supported TorchScript operators - PyTorch
This page lists the TorchScript operators that are supported/unsupported by ONNX export. Supported operators. ONNX support for TorchScript operators. Operator.
Read more >pytorch - Bountysource
Now that PyTorch 0.4.0 supports Windows does torchaudio support Windows ? ... Exporting the operator stft to ONNX opset version 9 is not...
Read more >torch.onnx — PyTorch master documentation
Exporting models with unsupported ONNX operators can be achieved using ... Note that for ONNX opset version < 9, initializers MUST be part...
Read more >How to Deploy PyTorch Models with Core ML Conversion ...
Or the occasional ONNX error: RuntimeError: Exporting the operator log10 to ONNX opset version 9 is not supported.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
PR is finally merged. https://github.com/onnx/onnx/pull/3741
@chenjiasheng There is actually some good news around : pytorch/pytorch#65666 and onnx/onnx#3741