Skip to content

Commit b8dad1e

Browse files
committed
Import dpnp_array directly
1 parent 39ac075 commit b8dad1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dpnp/dpnp_algo/dpnp_fill.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from dpctl.utils import SequentialOrderManager
3535

3636
import dpnp
37+
from dpnp.dpnp_array import dpnp_array
3738

3839

3940
def dpnp_fill(arr, val):
@@ -43,7 +44,7 @@ def dpnp_fill(arr, val):
4344

4445
dpnp.check_supported_arrays_type(val, scalar_type=True, all_scalars=True)
4546
# if val is an array, process it
46-
if isinstance(val, (dpnp.dpnp_array, dpt.usm_ndarray)):
47+
if isinstance(val, (dpnp_array, dpt.usm_ndarray)):
4748
val = dpnp.get_usm_ndarray(val)
4849
if val.shape != ():
4950
raise ValueError("`val` must be a scalar")

0 commit comments

Comments
 (0)