Skip to content

Commit

Permalink
Update test_general_reduction_ops.py
Browse files Browse the repository at this point in the history
  • Loading branch information
haowen-han authored Nov 6, 2024
1 parent 7433739 commit 44bc248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_general_reduction_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def test_accuracy_max_without_dim(shape, dtype):
@pytest.mark.parametrize("shape", REDUCTION_SHAPES)
@pytest.mark.parametrize("dtype", FLOAT_DTYPES)
def test_accuracy_max_without_dim_uncontiguous(shape, dtype):
inp = torch.randn(shape, dtype=dtype, device="cuda")[::2,]
inp = torch.randn(shape, dtype=dtype, device="cuda")[::2,::2]
ref_inp = to_reference(inp)

ref_out = torch.max(ref_inp)
Expand Down

0 comments on commit 44bc248

Please sign in to comment.