Skip to content

Commit 26275a7

Browse files
Pass self to is_cuda_backend
1 parent 2427599 commit 26275a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dpnp/random/dpnp_random_state.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def normal(
235235
"""
236236

237237
if not use_origin_backend():
238-
if dpnp.is_cuda_backend():
238+
if dpnp.is_cuda_backend(self):
239239
raise NotImplementedError(
240240
"Running on CUDA is currently not supported"
241241
)
@@ -369,7 +369,7 @@ def randint(self, low, high=None, size=None, dtype=int, usm_type="device"):
369369
"""
370370

371371
if not use_origin_backend(low):
372-
if dpnp.is_cuda_backend():
372+
if dpnp.is_cuda_backend(self):
373373
raise NotImplementedError(
374374
"Running on CUDA is currently not supported"
375375
)
@@ -598,7 +598,7 @@ def uniform(
598598
"""
599599

600600
if not use_origin_backend():
601-
if dpnp.is_cuda_backend():
601+
if dpnp.is_cuda_backend(self):
602602
raise NotImplementedError(
603603
"Running on CUDA is currently not supported"
604604
)

0 commit comments

Comments
 (0)