Files
pytorch/test/nn
pzzp 4375ee9661 Fix AdaptiveMaxPool index error (#159936)
Fix failure of:
```python
import torch
x = torch.zeros([1, 1, 65536], dtype=torch.float16)
x[0, 0, -1] = 1
_, indices = torch.adaptive_max_pool1d(x, [1])
assert indices == torch.argmax(x.reshape(-1))
```

Pull Request resolved: https://github.com/pytorch/pytorch/pull/159936
Approved by: https://github.com/jerryzh168, https://github.com/cyyever
2025-12-22 17:07:09 +00:00
..