Skip to content

Commit c40c049

Browse files
ezyangcleonard530
authored andcommitted
Docs on export joint with descriptors (pytorch#159006)
Signed-off-by: Edward Z. Yang <ezyang@meta.com> Pull Request resolved: pytorch#159006 Approved by: https://github.com/SherlockNoMad
1 parent bf0229a commit c40c049

File tree

2 files changed

+112
-0
lines changed

2 files changed

+112
-0
lines changed

docs/source/export.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,7 @@ export/programming_model
645645
export/ir_spec
646646
export/pt2_archive
647647
export/draft_export
648+
export/joint_with_descriptors
648649
cond
649650
generated/exportdb/index
650651
torch.compiler_aot_inductor
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# Joint with descriptors
2+
3+
Joint with descriptors is an experimental API for exporting a traced joint
4+
graph that supports all of torch.compile's features in full generality and,
5+
after processing, can be converted back into a differentiable callable that
6+
can be executed as normal. For example, it is used to implement autoparallel,
7+
a system that takes a model and reshards inputs and parameters to make it
8+
a distributed SPMD program.
9+
10+
```{eval-rst}
11+
.. currentmodule:: torch._functorch.aot_autograd
12+
.. autofunction:: aot_export_joint_with_descriptors
13+
.. autofunction:: aot_compile_joint_with_descriptors
14+
```
15+
16+
## Descriptors
17+
18+
```{eval-rst}
19+
.. currentmodule:: torch._functorch._aot_autograd.descriptors
20+
21+
.. autoclass:: AOTInput
22+
:members:
23+
24+
.. autoclass:: AOTOutput
25+
:members:
26+
27+
.. autoclass:: BackwardTokenAOTInput
28+
:members:
29+
30+
.. autoclass:: BackwardTokenAOTOutput
31+
:members:
32+
33+
.. autoclass:: BufferAOTInput
34+
:members:
35+
36+
.. autoclass:: DummyAOTInput
37+
:members:
38+
39+
.. autoclass:: DummyAOTOutput
40+
:members:
41+
42+
.. autoclass:: GradAOTOutput
43+
:members:
44+
45+
.. autoclass:: InputMutationAOTOutput
46+
:members:
47+
48+
.. autoclass:: IntermediateBaseAOTOutput
49+
:members:
50+
51+
.. autoclass:: ParamAOTInput
52+
:members:
53+
54+
.. autoclass:: PhiloxBackwardBaseOffsetAOTInput
55+
:members:
56+
57+
.. autoclass:: PhiloxBackwardSeedAOTInput
58+
:members:
59+
60+
.. autoclass:: PhiloxForwardBaseOffsetAOTInput
61+
:members:
62+
63+
.. autoclass:: PhiloxForwardSeedAOTInput
64+
:members:
65+
66+
.. autoclass:: PhiloxUpdatedBackwardOffsetAOTOutput
67+
:members:
68+
69+
.. autoclass:: PhiloxUpdatedForwardOffsetAOTOutput
70+
:members:
71+
72+
.. autoclass:: PlainAOTInput
73+
:members:
74+
75+
.. autoclass:: PlainAOTOutput
76+
:members:
77+
78+
.. autoclass:: SavedForBackwardsAOTOutput
79+
:members:
80+
81+
.. autoclass:: SubclassGetAttrAOTInput
82+
:members:
83+
84+
.. autoclass:: SubclassGetAttrAOTOutput
85+
:members:
86+
87+
.. autoclass:: SubclassSizeAOTInput
88+
:members:
89+
90+
.. autoclass:: SubclassSizeAOTOutput
91+
:members:
92+
93+
.. autoclass:: SubclassStrideAOTInput
94+
:members:
95+
96+
.. autoclass:: SubclassStrideAOTOutput
97+
:members:
98+
99+
.. autoclass:: SyntheticBaseAOTInput
100+
:members:
101+
102+
.. autoclass:: ViewBaseAOTInput
103+
:members:
104+
```
105+
106+
## FX utilities
107+
108+
```{eval-rst}
109+
.. automodule:: torch._functorch._aot_autograd.fx_utils
110+
:members:
111+
```

0 commit comments

Comments
 (0)