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_fill
1 parent c64dc0b commit 9691cf0Copy full SHA for 9691cf0
dpnp/dpnp_algo/dpnp_fill.py
@@ -45,7 +45,7 @@ def dpnp_fill(arr, val):
45
if dpnp.is_supported_array_type(val):
46
val = dpnp.get_usm_ndarray(val)
47
if val.shape != ():
48
- raise ValueError("`val` must be a scalar")
+ raise ValueError("`val` must be a scalar or 0D-array")
49
if dpu.get_execution_queue((exec_q, val.sycl_queue)) is None:
50
raise dpu.ExecutionPlacementError(
51
"Input arrays have incompatible queues."
@@ -66,7 +66,7 @@ def dpnp_fill(arr, val):
66
return
67
elif not dpnp.isscalar(val):
68
raise TypeError(
69
- f"Expected `val` to be an array or Python scalar, got {type(val)}"
+ f"Expected `val` to be a 0D-array or Python scalar, got {type(val)}"
70
)
71
72
dt = arr.dtype
0 commit comments