Skip to content

Remove ONNX support from PyTorch trim - #26

Merged
cyyever merged 2 commits into
trimfrom
cleanup/remove-onnx-code
Nov 2, 2026
Merged

cyyever merged 2 commits into
trimfrom
cleanup/remove-onnx-code

Conversation

@cyyever

@cyyever cyyever commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Remove the remaining torch.onnx compatibility stubs and the unsupported quantized exporter fragment.
  • Remove the stub-only test and stale ONNXTracedModule public API allowlist entry.
  • Remove Dynamo's skiplist entries for onnx, onnxruntime, and onnx_tf.
  • Remove the stub import from the precompile test; keep the unrelated onnx:: custom-op namespace test.

Validation

  • git diff --cached --check passed.
  • Searched the checked-out sources for ONNX references; remaining hits are limited to generic custom-op namespace tests and ONNX artifact download exclusions.
  • Python tests were not run.

PyTorch trim no longer exposes a torch.onnx compatibility module or special-cases third-party ONNX libraries in Dynamo. Downstream packages importing the stub helpers or relying on those skip rules will need to stop doing so.

@cyyever
cyyever merged commit 38aeb54 into trim Nov 2, 2026
46 checks passed
cyyever added a commit that referenced this pull request Nov 2, 2026
Remove ONNX support from PyTorch trim
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 this pull request may close these issues.

1 participant