Skip to content

Change "max dimensions" to None in array API capabilities #2071

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dpctl/tensor/_array_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(self):
self._capabilities = {
"boolean indexing": True,
"data-dependent shapes": True,
"max dimensions": 64,
"max dimensions": None,
}
self._all_dtypes = {
"bool": dpt.bool,
Expand Down Expand Up @@ -108,7 +108,7 @@ def capabilities(self):
Value: ``True``
``max dimensions``:
integer indication the maximum array dimension supported by ``dpctl``.
Value: ``64``
Value: ``None``

Returns:
dict:
Expand Down
2 changes: 1 addition & 1 deletion dpctl/tests/test_tensor_array_api_inspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_array_api_inspection_capabilities():
capabilities = dpt.__array_namespace_info__().capabilities()
assert capabilities["boolean indexing"]
assert capabilities["data-dependent shapes"]
assert capabilities["max dimensions"] == 64
assert capabilities["max dimensions"] is None


def test_array_api_inspection_default_dtypes():
Expand Down
Loading