Commit 514e15d
Taylor Robie
Update on "[Profiler] E2E expecttests for category assignment"
Up until now the unit tests for category assignment have been narrowly scoped to specific checks on specific Tensors. However as we start to reach reasonable levels of category assignment it's useful to supplement those tests with higher level summary tests to inspect the larger graph and confirm that it makes sense. (It will also be necessary for some categories like activations where it is tedious to record all relevant Tensors.)
The general structure of these tests is to capture a model invocation with `__torch_dispatch__` and then cross reference those inputs and outputs with the categories assigned by the memory profiler.
Differential Revision: [D40868659](https://our.internmc.facebook.com/intern/diff/D40868659/)
[ghstack-poisoned]File tree
272 files changed
+16790
-7433
lines changed- .circleci
- docker
- scripts
- .github
- actions/filter-test-configs
- ci_commit_pins
- requirements
- scripts
- workflows
- .jenkins/pytorch
- aten/src/ATen
- cpu/vec
- vec256
- vsx
- vec512
- functorch
- mps
- native
- cpu
- cuda
- mkldnn
- mps/operations
- nested
- quantized
- cpu
- vulkan/glsl
- test
- benchmarks
- dynamo
- static_runtime
- c10
- core
- cuda
- test/util
- util
- docs/source
- community
- notes
- functorch/_src
- test
- cpp/jit
- distributed
- _tensor/parallel
- checkpoint
- fsdp
- dynamo
- functorch
- inductor
- lazy
- nn
- onnx
- quantization
- core
- fx
- third_party
- tools
- autograd
- pyi
- stats
- torchgen
- torch
- _C
- _decomp
- _dispatch
- _dynamo
- optimizations
- variables
- _inductor
- codegen
- _prims_common
- _prims
- _refs
- _subclasses
- ao/quantization
- fx
- autograd
- csrc
- autograd
- cuda
- distributed/c10d
- jit
- passes
- quantization
- runtime/static
- tensorexpr
- lazy
- core
- ts_backend
- utils
- cuda
- distributed
- _tensor/parallel
- checkpoint
- nn/api
- rpc
- fx
- jit
- nn
- modules
- optim
- signal/windows
- testing/_internal
- distributed
- opinfo
- definitions
- utils
- hipify
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
272 files changed
+16790
-7433
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
| 78 | + | |
| 79 | + | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
84 | | - | |
| 83 | + | |
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
| |||
209 | 208 | | |
210 | 209 | | |
211 | 210 | | |
212 | | - | |
213 | 211 | | |
214 | 212 | | |
215 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
191 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
192 | 195 | | |
193 | 196 | | |
194 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 27 | + | |
47 | 28 | | |
48 | 29 | | |
49 | 30 | | |
| |||
0 commit comments