Skip to content

Commit 6f5d0fd

Browse files
Deprecate dpnp.asfarray()
1 parent 574e1ca commit 6f5d0fd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dpnp/dpnp_iface_manipulation.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,14 @@ def asfarray(a, dtype=None, *, device=None, usm_type=None, sycl_queue=None):
906906
907907
"""
908908

909+
warnings.warn(
910+
"`dpnp.asfarray` is deprecated, "
911+
"and will be removed in a future release. "
912+
"Please use `dpnp.asarray` with an appropriate dtype instead.",
913+
DeprecationWarning,
914+
stacklevel=2,
915+
)
916+
909917
_sycl_queue = dpnp.get_normalized_queue_device(
910918
a, sycl_queue=sycl_queue, device=device
911919
)

0 commit comments

Comments
 (0)