mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
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