KEMBAR78
torch.onnx.export to support opset 20. · Issue #114801 · pytorch/pytorch · GitHub
Skip to content

torch.onnx.export to support opset 20.  #114801

@liqunfu

Description

@liqunfu

🚀 The feature, motivation and pitch

onnx.export only support onnx opset up to version 18. There have been many updates and new operators added since version 18 in ONNX as required from real use cases. For example: #100790
New dynamo export is in progress. It does not run on Windows. Existing users may already have torch.onnx.export in place and have difficulty migrating to dynamo export.  

Alternatives

None.

register custom op is not a solution. If one calls torch.onnx.export with version=20, it will fail for many reasons due to amount of op changes since version 18.

One may be able to export to version 18 with customer ops and then use version converter to convert the exported model to version 20. There are likely unexpected errors in the path as well.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: onnxRelated to torch.onnxonnx-triagedtriaged by ONNX teamtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions