Skip to content

Commit 91ae646

Browse files
committed
Set __array_api_version__ to "2022.12"
1 parent f03c18b commit 91ae646

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

dpctl/tensor/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
from dpctl.tensor._usmarray import usm_ndarray
9494
from dpctl.tensor._utility_functions import all, any
9595

96-
from ._array_api import __array_namespace_info__
96+
from ._array_api import __array_api_version__, __array_namespace_info__
9797
from ._clip import clip
9898
from ._constants import e, inf, nan, newaxis, pi
9999
from ._elementwise_funcs import (
@@ -336,5 +336,6 @@
336336
"clip",
337337
"logsumexp",
338338
"reduce_hypot",
339+
"__array_api_version__",
339340
"__array_namespace_info__",
340341
]

dpctl/tensor/_array_api.py

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
default_device_int_type,
2424
)
2525

26+
__array_api_version__ = "2022.12"
27+
2628

2729
def _isdtype_impl(dtype, kind):
2830
if isinstance(kind, dpt.dtype):

0 commit comments

Comments
 (0)