Files
pytorch/torch/onnx/symbolic_opset10.py
Justin Chu 524b78d4f6 [ONNX] Refactor torchscript based exporter (#161323)
Refactor torchscript based exporter logic to move them to a single (private) location for better code management. Original public module and method apis are preserved.

- Updated module paths in `torch/csrc/autograd/python_function.cpp` accordingly
- Removed `check_onnx_broadcast` from `torch/autograd/_functions/utils.py` because it is private&unused

@albanD / @soulitzer could you review changes in `torch/csrc/autograd/python_function.cpp` and
`torch/autograd/_functions/utils.py`? Thanks!

## BC Breaking
- **Deprecated members in `torch.onnx.verification` are removed**

Differential Revision: [D81236421](https://our.internmc.facebook.com/intern/diff/D81236421)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/161323
Approved by: https://github.com/titaiwangms, https://github.com/angelayi
2025-09-02 16:10:30 +00:00

12 lines
325 B
Python

"""Backward compatibility module for torch.onnx.symbolic_opset10."""
from __future__ import annotations
__all__: list[str] = []
from torch.onnx._internal.torchscript_exporter.symbolic_opset10 import * # noqa: F401,F403
from torch.onnx._internal.torchscript_exporter.symbolic_opset10 import ( # noqa: F401
_slice,
)