mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Revert "use more elements per thread for narrow dtypes (#139449)"
This reverts commit d3fc13a9dd186ceb8d1b56b0968a41686ea645cd. Reverted https://github.com/pytorch/pytorch/pull/139449 on behalf of https://github.com/ngimel due to breaks tests ([comment](https://github.com/pytorch/pytorch/pull/139449#issuecomment-2477012582))
This commit is contained in:
@ -1045,6 +1045,7 @@ class TestReductions(TestCase):
|
||||
a[:, (shape[1] - 1) // 2:] = True
|
||||
values, indices = a.mode(-1)
|
||||
self.assertEqual(values, torch.ones(shape[0], dtype=torch.bool))
|
||||
print(indices)
|
||||
indexed = a.gather(1, indices.unsqueeze(1)).squeeze(1)
|
||||
self.assertEqual(values, indexed)
|
||||
|
||||
|
Reference in New Issue
Block a user