Add Half support for aminmax on CPU (#106853)

Add Half support for aminmax on CPU.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/106853
Approved by: https://github.com/cpuhrsch
This commit is contained in:
CaoE
2023-10-23 17:43:47 +00:00
committed by PyTorch MergeBot
parent ad4ccf9689
commit 4b324a8717
5 changed files with 5 additions and 6 deletions

View File

@ -1207,7 +1207,7 @@ class TestReductions(TestCase):
self._test_minmax_helper(torch.amax, np.amax, device, dtype)
@onlyNativeDeviceTypes
@dtypes(torch.float, torch.double)
@dtypes(torch.float, torch.double, torch.bfloat16, torch.half)
@dtypesIfCUDA(torch.half, torch.float, torch.bfloat16)
def test_aminmax(self, device, dtype):