Skip to content
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

Feature request: model compatible to export into onnx #106

Open
rmcpantoja opened this issue Oct 12, 2023 · 0 comments · May be fixed by #107
Open

Feature request: model compatible to export into onnx #106

rmcpantoja opened this issue Oct 12, 2023 · 0 comments · May be fixed by #107

Comments

@rmcpantoja
Copy link

I have made an export script in my fork but the only error that prevents me from exporting it is:

Traceback (most recent call last):
  File "C:\Users\LENOVO_User\ForwardTacotron\convert-to-onnx-v2.py", line 35, in <module>
    torch.onnx.export(
  File "C:\Users\LENOVO_User\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\onnx\utils.py", line 506, in export
    _export(
  File "C:\Users\LENOVO_User\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\onnx\utils.py", line 1548, in _export
    graph, params_dict, torch_out = _model_to_graph(
  File "C:\Users\LENOVO_User\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\onnx\utils.py", line 1117, in _model_to_graph
    graph = _optimize_graph(
  File "C:\Users\LENOVO_User\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\onnx\utils.py", line 665, in _optimize_graph
    graph = _C._jit_pass_onnx(graph, operator_export_type)
  File "C:\Users\LENOVO_User\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\onnx\utils.py", line 1901, in _run_symbolic_function
    raise errors.UnsupportedOperatorError(
torch.onnx.errors.UnsupportedOperatorError: Exporting the operator 'aten::pad_sequence' to ONNX opset version 18 is not supported. Please feel free to request support or submit a pull request on PyTorch GitHub: https://github.com/pytorch/pytorch/issues.

Is there any alternative to pad_sequence or does the model need to be adjusted to be compatible?

@rmcpantoja rmcpantoja linked a pull request Jan 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant