test_numba_integration passes tuple into cuda instead of array #70611
Labels
module: tests
Issues related to tests (not the torch.testing module)
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
馃悰 Describe the bug
There is an (as far as I can tell) unwanted comma on line 314:
pytorch/test/test_numba_integration.py
Lines 313 to 318 in 1b66915
This makes the
numpy_arya tuple containing a numpy array rather than a numpy array ie.:This is a problem for the test because the tuple is then passed into
numba.cuda.to_device(numpy_ary)and assertions are done on the output. It is possible the test is affected by the fact a tuple is passed in instead of a numpy array. Indeed, if in "live" a numpy array is passed in but in tests a tuple containing a numpy array is passed in then this reduces the confidence the tests give us as it's not "like live".Versions
NA
I can make a PR to fix this :)
cc @mruberry
The text was updated successfully, but these errors were encountered: