You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update and Add links to the symbolic opset files (onnx#124)
Hi, The original link to symbolic.py is no longer working since now there are multiple files for definitions of symbolic operator functions. Perhaps providing the links to the helper file and to the new opset files is the best fix? I also add the link to torch/csrc/autograd/generated/VariableType.h, for the sake of convenience.
Copy file name to clipboardExpand all lines: tutorials/PytorchAddExportSupport.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,12 @@ importer (such as onnx-caffe2) developers, as additional work is required.
22
22
### How to add support to export an operator in PyTorch
23
23
#### Condition 1: If the operator in PyTorch is an ATen operator...
24
24
To determine whether the operator is an ATen operator or not, check
25
-
`torch/csrc/autograd/generated/VariableType.h` (available within generated code in the PyTorch install dir). If you find the corresponding function in this header file, it's most likely an ATen operator.
25
+
[`torch/csrc/autograd/generated/VariableType.h`](https://bddppq.github.io/codebrowser/pytorch/pytorch/torch/csrc/autograd/generated/VariableType.h) (available within generated code in the PyTorch install dir). If you find the corresponding function in this header file, it's most likely an ATen operator.
26
26
27
27
**Define symbolic functions.** In this case, you should obey the following rules.
28
-
- Define the symbolic function in [`torch/onnx/symbolic.py`](https://github.com/pytorch/pytorch/blob/master/torch/onnx/symbolic.py). Make sure the
28
+
- Define the symbolic function in [`torch/onnx/symbolic.py`](https://github.com/pytorch/pytorch/blob/master/torch/onnx/symbolic_helper.py). Make sure the
29
29
function has the same name as the ATen operator/function defined in
0 commit comments