Skip to content
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

Add __array_namespace_info__ and corresponding utilities #20294

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

Micky774
Copy link
Collaborator

Towards #20200

This PR adds:

  • __array_namespace_info__
  • capabilities
  • default_device
  • default_dtypes
  • devices
  • dtypes
  • Tests for each of the above

@Micky774 Micky774 force-pushed the array_namespace_info branch 3 times, most recently from b0eb8b9 to f429f8a Compare March 18, 2024 15:40
@jakevdp jakevdp self-assigned this Mar 18, 2024
@Micky774 Micky774 force-pushed the array_namespace_info branch 2 times, most recently from 062a667 to 5dd83a5 Compare March 18, 2024 17:20
tests/array_api_test.py Outdated Show resolved Hide resolved
jax/experimental/array_api/_utility_functions.py Outdated Show resolved Hide resolved
@Micky774 Micky774 force-pushed the array_namespace_info branch 2 times, most recently from 6c34257 to 8497bae Compare March 28, 2024 22:24
jax/experimental/array_api/_utility_functions.py Outdated Show resolved Hide resolved
@google-ml-butler google-ml-butler bot added kokoro:force-run pull ready Ready for copybara import and testing labels Apr 1, 2024
@jakevdp
Copy link
Collaborator

jakevdp commented Apr 5, 2024

There are some failures – it looks like the array_api_test needs to add a BUILD dependency on //jax:internal_test_util here:

jax/tests/BUILD

Lines 51 to 58 in f37e503

py_test(
name = "array_api_test",
srcs = ["array_api_test.py"],
deps = [
"//jax",
"//jax:experimental_array_api",
] + py_deps("absl/testing"),
)

tests/BUILD Outdated Show resolved Hide resolved
@copybara-service copybara-service bot merged commit 301c351 into google:main Apr 11, 2024
14 checks passed
@Micky774 Micky774 deleted the array_namespace_info branch April 11, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull ready Ready for copybara import and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants