question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exporting the operator stft to ONNX opset version 9 is not supported.

See original GitHub issue

Hi, 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:open
  • Created 3 years ago
  • Reactions:1
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

6reactions
averkijcommented, May 24, 2022
4reactions
NiziLcommented, May 18, 2022

@chenjiasheng There is actually some good news around : pytorch/pytorch#65666 and onnx/onnx#3741

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found