-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement python array API Inspection namespace #2275
Conversation
Link to rendered documentation: https://intelpython.github.io/dpnp/pull/2275/reference/array_api.html |
…in test_default_dtypes
Array API standard conformance tests for dpnp=0.17.0dev5=py312he4f9c94_10 ran successfully. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @antonwolfy!
View rendered docs @ https://intelpython.github.io/dpnp/pull/2275/index.html |
Array API standard conformance tests for dpnp=0.17.0dev5=py312he4f9c94_17 ran successfully. |
The PR proposes to implement
dpnp.__array_namespace_info__
, what is a python array API Inspection namespace.It is required to achieve the compliance with python array API.
The implementation leverages on appropriate namespace exposed by dpctl.tensor.
In addition, this PR makes an
__array_api_version__
attribute available in dpnp. It also borrowed from dpctl.The PR adds a dedication documentation page describing
Array API standard compatibility
, including reference on newdpnp.__array_namespace_info__
.