Skip to content

Commit

Permalink
test_nvidia_transform: fix variable reference (#1000)
Browse files Browse the repository at this point in the history
`out_order` is the global parametrization list, not the test fixture argument
  • Loading branch information
akx authored Feb 1, 2024
1 parent b90db7e commit 1a0dc5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,9 +613,9 @@ def test_vector_quant(dim1, dim2, dim3):

@pytest.mark.parametrize("dim1, dim2, dim3, dims, dtype, orderA, orderOut, transpose",values,ids=names)
def test_nvidia_transform(dim1, dim2, dim3, dims, dtype, orderA, orderOut, transpose):
if dims == 3 and out_order != "col32":
if dims == 3 and orderOut != "col32":
return
if dtype == torch.int32 and out_order != "col32":
if dtype == torch.int32 and orderOut != "col32":
return
try:
func = F.get_transform_func(dtype, orderA, orderOut, transpose)
Expand Down

0 comments on commit 1a0dc5c

Please sign in to comment.