Commit 6561378
committed
rebase and address comments on "[jit][redo] move casting ops from prim to aten"
[jit][redo] move casting ops from prim to aten
Summary:
This is a redo PR of #21002
Currently we are messed up with prim and aten namespace when we register prim and builtin ops, lots of the ops that have schema should go into the aten namespace rather than prim, prim namespace should only be reserved for the ops that does not have a schema.
Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags:
gh-metadata: pytorch pytorch 22275 gh/wanchaol/27/headFile tree
327 files changed
+7285
-4328
lines changed- .circleci
- verbatim-sources
- .jenkins/pytorch/win-test-helpers
- aten/src
- ATen
- core
- op_registration
- cuda
- detail
- cudnn
- detail
- native
- cuda
- quantized/cpu
- quantized
- templates
- test
- THC
- generic
- TH
- generic
- benchmarks/operator_benchmark
- common/tests
- pt
- c10
- core
- util
- caffe2
- core
- mobile/contrib/nnapi
- operators
- experimental/c10/cpu
- opt
- proto
- python
- layers
- operator_test
- predictor
- serialized_test
- data/operator_test
- quantization/server
- cmake
- Modules
- docs/source
- test
- cpp_extensions
- cpp
- api
- jit
- onnx
- expect
- optim
- third_party
- tools
- autograd
- templates
- pyi
- setup_helpers
- torch
- csrc
- api/include/torch/data/datasets
- autograd
- distributed/c10d
- jit
- passes
- utils
- script
- tensor
- utils
- jit
- lib/c10d
- test
- nn
- modules
- parallel
- utils
- onnx
- optim
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
327 files changed
+7285
-4328
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | | - | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| |||
282 | 285 | | |
283 | 286 | | |
284 | 287 | | |
285 | | - | |
286 | | - | |
| 288 | + | |
| 289 | + | |
287 | 290 | | |
288 | 291 | | |
289 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 20 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 21 | + | |
| 22 | + | |
40 | 23 | | |
41 | 24 | | |
42 | 25 | | |
| |||
108 | 91 | | |
109 | 92 | | |
110 | 93 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | 94 | | |
144 | 95 | | |
145 | 96 | | |
| |||
155 | 106 | | |
156 | 107 | | |
157 | 108 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | 109 | | |
162 | 110 | | |
163 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | | - | |
8 | | - | |
9 | 6 | | |
10 | 7 | | |
11 | 8 | | |
12 | 9 | | |
13 | | - | |
14 | 10 | | |
15 | 11 | | |
16 | | - | |
17 | 12 | | |
18 | 13 | | |
19 | 14 | | |
| |||
28 | 23 | | |
29 | 24 | | |
30 | 25 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 26 | | |
61 | 27 | | |
62 | 28 | | |
| |||
102 | 68 | | |
103 | 69 | | |
104 | 70 | | |
105 | | - | |
106 | 71 | | |
107 | 72 | | |
108 | 73 | | |
109 | 74 | | |
110 | 75 | | |
111 | 76 | | |
112 | | - | |
113 | 77 | | |
114 | 78 | | |
115 | 79 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | 80 | | |
122 | 81 | | |
123 | 82 | | |
| |||
127 | 86 | | |
128 | 87 | | |
129 | 88 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 89 | | |
134 | 90 | | |
135 | 91 | | |
| |||
153 | 109 | | |
154 | 110 | | |
155 | 111 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | 112 | | |
162 | 113 | | |
163 | | - | |
164 | 114 | | |
165 | 115 | | |
166 | 116 | | |
167 | | - | |
168 | 117 | | |
169 | 118 | | |
170 | | - | |
171 | 119 | | |
172 | 120 | | |
173 | 121 | | |
| |||
176 | 124 | | |
177 | 125 | | |
178 | 126 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | 127 | | |
188 | 128 | | |
189 | 129 | | |
| |||
206 | 146 | | |
207 | 147 | | |
208 | 148 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | 149 | | |
213 | 150 | | |
214 | 151 | | |
| |||
0 commit comments