Files
pytorch/docs/source
Justin Chu 010963032c [ONNX] Create onnx_symbolic (#148905)
In the old exporter we allow users to define a symbolic() method to bypass JIT tracing for a block of logic. We can allow users to do similar things by creating symbolic ops at export.

This PR implements `torch.onnx.ops.symbolic` and `torch.onnx.ops.symbolic_multi_out` to allow users to create onnx nodes symbolically with pt2 & fx. The custom pytorch ops were designed such that the attributes are encoded to be part of a valid fx op. Users provide shape and dtype for the meta function to produce the currect fake tensor during export.

An example is

![image](https://github.com/user-attachments/assets/c62f5f21-e038-456e-a71d-b9a5d0a7cd9d)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/148905
Approved by: https://github.com/titaiwangms
2025-03-18 21:32:06 +00:00
..
2020-05-14 16:02:01 -07:00
2021-03-30 13:09:52 -07:00
2023-01-23 18:07:22 +00:00
2022-06-03 18:14:21 +00:00
2023-10-06 14:16:01 +00:00
2024-03-29 18:05:28 +00:00
2025-03-18 21:32:06 +00:00
2023-10-06 14:16:01 +00:00
2023-10-06 14:16:01 +00:00
2022-12-16 09:05:53 +00:00
2024-06-11 18:13:01 +00:00
2023-12-08 18:49:35 +00:00