Commit b66859b
committed
[torchlib] Add missing dtype parameter to aten_mean_dim
The ATen schema for mean.dim documents dtype as an optional parameter,
but aten_mean_dim and aten_mean_dim_complex did not accept it. This
causes a TypeError when PyTorch lowers mean.dim with an explicit dtype
(e.g. from GlobalAveragePooling2D in Keras).
Add dtype: int = -1 to both functions, following the same pattern used
by aten_sum_dim_IntList.
Fixes #28841 parent 1ef0ec9 commit b66859b
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6231 | 6231 | | |
6232 | 6232 | | |
6233 | 6233 | | |
6234 | | - | |
| 6234 | + | |
6235 | 6235 | | |
6236 | 6236 | | |
6237 | 6237 | | |
6238 | 6238 | | |
6239 | 6239 | | |
6240 | 6240 | | |
6241 | 6241 | | |
| 6242 | + | |
| 6243 | + | |
| 6244 | + | |
| 6245 | + | |
6242 | 6246 | | |
6243 | 6247 | | |
6244 | 6248 | | |
6245 | 6249 | | |
6246 | | - | |
| 6250 | + | |
6247 | 6251 | | |
6248 | 6252 | | |
6249 | 6253 | | |
| |||
6254 | 6258 | | |
6255 | 6259 | | |
6256 | 6260 | | |
| 6261 | + | |
| 6262 | + | |
| 6263 | + | |
| 6264 | + | |
| 6265 | + | |
| 6266 | + | |
6257 | 6267 | | |
6258 | 6268 | | |
6259 | 6269 | | |
| |||
0 commit comments