Skip to content
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Also, that release drops support for Python 3.9, making Python 3.10 the minimum

### Deprecated

* `dpnp.asfarray` is deprecated. Use `dpnp.asarray` with an appropriate dtype instead [#2650](https://github.com/IntelPython/dpnp/pull/2650)

### Removed

* Dropped support for Python 3.9 [#2626](https://github.com/IntelPython/dpnp/pull/2626)
Expand Down
8 changes: 8 additions & 0 deletions dpnp/dpnp_iface_manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,14 @@ def asfarray(a, dtype=None, *, device=None, usm_type=None, sycl_queue=None):

"""

warnings.warn(
"`dpnp.asfarray` is deprecated, "
"and will be removed in a future release. "
"Please use `dpnp.asarray` with an appropriate dtype instead.",
DeprecationWarning,
stacklevel=2,
)

_sycl_queue = dpnp.get_normalized_queue_device(
a, sycl_queue=sycl_queue, device=device
)
Expand Down
Loading