Skip to content

Conversation

@vlad-perevezentsev
Copy link
Contributor

@vlad-perevezentsev vlad-perevezentsev commented Nov 4, 2025

This PR marks dpnp.asfarray() as deprecated to align with NumPy>=2.0 where this function was removed (Release Notes Numpy 2.0)

A DeprecationWarning is now raised informing users that the function will be removed in a future release and suggesting to use dpnp.asarray(dtype=...) instead.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

View rendered docs @ https://intelpython.github.io/dpnp/index.html

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

Array API standard conformance tests for dpnp=0.20.0dev0=py313h509198e_44 ran successfully.
Passed: 1227
Failed: 0
Skipped: 9

@coveralls
Copy link
Collaborator

coveralls commented Nov 4, 2025

Coverage Status

coverage: 81.4% (+0.001%) from 81.399%
when pulling a622d95 on remove_asfarray
into 7cd5570 on master.

@antonwolfy antonwolfy added this to the 0.20.0 release milestone Nov 4, 2025
@vlad-perevezentsev vlad-perevezentsev self-assigned this Nov 5, 2025
@vlad-perevezentsev vlad-perevezentsev changed the title Remove dpnp.asfarray() Deprecate dpnp.asfarray() and raise a DeprecationWarning Nov 5, 2025
Copy link
Contributor

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @vlad-perevezentsev, no more comments from me.

@antonwolfy antonwolfy merged commit 06d3076 into master Nov 8, 2025
120 of 123 checks passed
@antonwolfy antonwolfy deleted the remove_asfarray branch November 8, 2025 15:09
github-actions bot added a commit that referenced this pull request Nov 8, 2025
This PR marks `dpnp.asfarray()` as deprecated to align with NumPy>=2.0
where this function was removed ([Release Notes Numpy
2.0](https://numpy.org/doc/2.0/release/2.0.0-notes.html))

A `DeprecationWarning` is now raised informing users that the function
will be removed in a future release and suggesting to use
`dpnp.asarray(dtype=...)` instead. 06d3076
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants