Commit 651c24f
committed
Update on "Make test_export training IR compatible"
In this PR, I make test_export to be compatible with training IR. The idea is that when we flip the IR to non-functional training IR, all these tests should be green. The changes involve reading through the test case, and add necessary decomposition etc to make sure the tests pass. For example, if the tests expect to see mutated buffers returned, we need to get them via running run_decomp.
Differential Revision: [D64732360](https://our.internmc.facebook.com/intern/diff/D64732360)
[ghstack-poisoned]File tree
601 files changed
+7191
-8035
lines changed- .ci
- docker
- ci_commit_pins
- libtorch
- pytorch
- .github
- scripts
- workflows
- aten/src/ATen
- core
- boxing
- impl
- op_registration
- cpu/vec
- vec128
- vec256
- zarch
- vec512
- cuda
- detail
- detail
- functorch
- native
- cpu
- cuda
- cudnn
- miopen
- mkldnn
- mkl
- mps/operations
- quantized/cpu
- sparse/cuda
- transformers/cuda
- flash_attn
- mem_eff_attention/kernels
- vulkan/api
- test
- benchmarks
- dynamo
- ci_expected_accuracy
- cu124
- pr_time_benchmarks
- test_check_result
- sparse
- c10
- benchmark
- core
- impl
- cuda
- macros
- test
- util
- util
- caffe2
- perfkernels
- cmake
- Modules
- functorch/csrc/dim
- test
- cpp
- api
- c10d
- dist_autograd
- jit
- lazy
- rpc
- tensorexpr
- distributed
- _composable
- _tensor
- pipelining
- tensor/parallel
- dynamo_expected_failures
- dynamo
- edge
- expect
- export
- functorch
- higher_order_ops
- inductor
- nn
- profiler
- quantization/pt2e
- third_party
- tools
- autograd
- linter/adapters
- torchgen
- torch
- _C
- _decomp
- _dynamo
- backends
- variables
- _export
- _functorch
- _aot_autograd
- _higher_order_ops
- _inductor
- codegen
- fx_passes
- kernel
- runtime
- _prims_common
- _prims
- _refs
- _subclasses
- backends/cusparselt
- csrc
- api/include/torch/nn/modules/container
- autograd
- cuda
- distributed
- c10d
- control_plane
- rpc
- dynamo
- inductor
- aoti_runtime
- aoti_torch
- c
- jit
- api
- backends
- coreml/objc
- xnnpack/executor
- codegen
- cuda
- fuser/cpu
- onednn
- mobile/nnc
- passes
- dbr_quantization
- onnx/pattern_conversion
- quantization
- utils
- python
- runtime
- serialization
- tensorexpr
- operators
- testing
- profiler
- stubs
- unwind
- utils
- xpu
- cuda
- distributed
- pipelining
- export
- passes
- fx
- experimental
- passes
- masked/maskedtensor
- nn
- onnx/_internal
- sparse
- testing/_internal
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
601 files changed
+7191
-8035
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
69 | 74 | | |
70 | 75 | | |
71 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
Lines changed: 0 additions & 182 deletions
This file was deleted.
0 commit comments