Skip to content

Commit 556e2a7

Browse files
Aidyn-Apytorchmergebot
authored andcommitted
[Test][Easy] Use float16 dtype in test_sort_large (#159939)
The test fails with: >RuntimeError: var_mean only support floating point and complex dtypes Pull Request resolved: #159939 Approved by: https://github.com/eqy
1 parent 178515d commit 556e2a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_sort_and_select.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def test_stable_sort(self, device, dtype):
215215
)
216216

217217
@onlyCUDA
218-
@dtypes(torch.uint8)
218+
@dtypes(torch.float16)
219219
@largeTensorTest("200GB") # Unfortunately 80GB A100 is not large enough
220220
def test_sort_large(self, device, dtype):
221221
t0 = torch.randperm(8192, device=device).to(dtype)

0 commit comments

Comments
 (0)