10000 [ONNX] Migrate torchlib from onnxscript · Issue #139301 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content
[ONNX] Migrate torchlib from onnxscript #139301
@justinchuby

Description

@justinchuby

Now that the torchlib translation library is close to stable in onnxscript, it is ready to be migrated into PyTorch so that

  1. It can evolve with aten operators without having to worry about backward compatibility for different PyTorch versions
  2. We can use newer opsets by default, again without having to worry about BC. The proposal is upgrade to use opset 22 for torch 2.6 or torch 2.7. This makes easier for us and users to leverage new dtypes and the corrected GroupNormalization.

Considerations

  1. We should still allow implementations in onnxscript to override those in PyTorch so we can continue to add new implementations after a torch version is released. This will be part of the stable framework apis in onnxscript.
  2. We can update the default opset version for each torch version.
  3. The opinfo unit tests should be migrated as well.

Metadata

Metadata

Assignees

Labels

module: onnxRelated to torch.onnxtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0