Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Zientkiewicz <michalz@nvidia.com>
  • Loading branch information
mzient committed Oct 25, 2024
1 parent 717fd34 commit 717a164
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dali/test/python/test_external_source_cupy.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def _test_cross_device(src, dst, use_dali_tensor=False):

with cp.cuda.Device(src):
with cp.cuda.Stream(src):

def get_data():
nonlocal iter
data = cp.array([[1, 2, 3, 4], [5, 6, 7, 8]], dtype=cp.float32) + iter
Expand All @@ -109,7 +110,9 @@ def get_data():
pipe.build()
for i in range(10):
(out,) = pipe.run()
assert np.array_equal(np.array(out[0].as_cpu()), np.array([[1, 2, 3, 4], [5, 6, 7, 8]]) + i)
assert np.array_equal(
np.array(out[0].as_cpu()), np.array([[1, 2, 3, 4], [5, 6, 7, 8]]) + i
)


@attr("multigpu")
Expand Down

0 comments on commit 717a164

Please sign in to comment.