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:
PyTorch MergeBot
2024-11-14 17:28:32 +00:00
parent f4008a5ce4
commit adcff4bff0
5 changed files with 27 additions and 67 deletions

View File

@ -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)