Commit 76e60f3
[ROCm] fix and unskip tests on rocm (pytorch#169827)
This PR fixes:
- `torch.nonzero` for large tensors on ROCm. It was malfunctioning due to a known hip compiler problem with `::min` for int64_t arguments. Fixed by expliced typing to `std::min<int64_t>`
- using `torch.ops.aten.miopen_batch_norm` instead of `torch.ops.aten.cudnn_batch_norm` on ROCm
Fixed tests:
- Fixes pytorch#168878.
- Fixes pytorch#168879.
- Fixes pytorch#168553.
- Fixes pytorch#168554.
Pull Request resolved: pytorch#169827
Approved by: https://github.com/jeffdaily, https://github.com/mlazos, https://github.com/cyyever
Co-authored-by: Jeff Daily <[email protected]>1 parent e09550e commit 76e60f3
File tree
3 files changed
+9
-8
lines changed- aten/src/ATen/native/cuda
- test
- functorch
3 files changed
+9
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
| |||
3900 | 3899 | | |
3901 | 3900 | | |
3902 | 3901 | | |
3903 | | - | |
3904 | 3902 | | |
3905 | 3903 | | |
3906 | 3904 | | |
| |||
3914 | 3912 | | |
3915 | 3913 | | |
3916 | 3914 | | |
3917 | | - | |
| 3915 | + | |
| 3916 | + | |
| 3917 | + | |
| 3918 | + | |
| 3919 | + | |
| 3920 | + | |
3918 | 3921 | | |
3919 | 3922 | | |
3920 | 3923 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
1613 | 1612 | | |
1614 | 1613 | | |
1615 | 1614 | | |
1616 | | - | |
1617 | 1615 | | |
1618 | 1616 | | |
1619 | 1617 | | |
| |||
0 commit comments