Skip to content

Commit

Permalink
Skip DLPack CPU export test for incompatible Numpy (#4904)
Browse files Browse the repository at this point in the history
Signed-off-by: Albert Wolant <[email protected]>
  • Loading branch information
awolant authored and stiepan committed Jun 12, 2023
1 parent d246516 commit 65bb9bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dali/test/python/test_backend_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,12 @@ def test_tensor_str_sample():


def test_tensor_expose_dlpack_capsule():
# TODO(awolant): Numpy versions for Python 3.6 and 3.7 do not
# support from_dlpack. When we upgrade DLPack support for DALI
# this test needs to be changed.
if not hasattr(np, "from_dlpack"):
raise SkipTest("Test requires Numpy DLPack support.")

arr = np.arange(20)
tensor = TensorCPU(arr, "NHWC")

Expand Down

0 comments on commit 65bb9bc

Please sign in to comment.