We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dpnp_array
1 parent 39ac075 commit b8dad1eCopy full SHA for b8dad1e
dpnp/dpnp_algo/dpnp_fill.py
@@ -34,6 +34,7 @@
34
from dpctl.utils import SequentialOrderManager
35
36
import dpnp
37
+from dpnp.dpnp_array import dpnp_array
38
39
40
def dpnp_fill(arr, val):
@@ -43,7 +44,7 @@ def dpnp_fill(arr, val):
43
44
45
dpnp.check_supported_arrays_type(val, scalar_type=True, all_scalars=True)
46
# if val is an array, process it
- if isinstance(val, (dpnp.dpnp_array, dpt.usm_ndarray)):
47
+ if isinstance(val, (dpnp_array, dpt.usm_ndarray)):
48
val = dpnp.get_usm_ndarray(val)
49
if val.shape != ():
50
raise ValueError("`val` must be a scalar")
0 commit comments