mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
@ -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):
|
||||
|
||||
|
Reference in New Issue
Block a user