Commit 10ef41e
Fix portable kernel utils for aten mode (#1563)
Summary:
Pull Request resolved: #1563
In supporting build for aten mode, reduce_util has dependency on
index_util.cpp. Reduce util depends on index_util for a util function,
check_index_out_args
However this function is used only when not being built for aten mode.
When being built with aten mode, index_util.cpp ends up including
c10/ScalarType.h (via scalar_type_utils.h). Both c10/ScalartType.h and
scalar_type_utils.h define toString which results in compiler error.
We should really fix scalar_type_utils.h to allow for aten mode build,
but that needs more work.
In the mean time check_index_out_args is used only in reduce_util.cpp so there is no
need to really factor out index_util.cpp, so removin this refactor.
ghstack-source-id: 211679772
exported-using-ghexport
Reviewed By: larryliu0820, GregoryComer
Differential Revision: D52626505
fbshipit-source-id: 57d4fdda77117347813738d86d611f8c17d5e6601 parent 845ce38 commit 10ef41e
5 files changed
Lines changed: 6 additions & 27 deletions
File tree
- kernels
- portable/cpu/util
- quantized
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | 132 | | |
146 | 133 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 37 | | |
43 | 38 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 15 | | |
20 | 16 | | |
21 | 17 | | |
| |||
426 | 422 | | |
427 | 423 | | |
428 | 424 | | |
429 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | 170 | | |
172 | 171 | | |
173 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
| |||
0 commit comments