Skip to content
Merged
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ Also, that release drops support for Python 3.9, making Python 3.10 the minimum

### Fixed

* Suppressed a potential deprecation warning triggered during import of the `dpctl.tensor` module [#2709](https://github.com/IntelPython/dpnp/pull/2709)

### Security


Expand Down
5 changes: 4 additions & 1 deletion dpnp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import os
import sys
import warnings

mypath = os.path.dirname(os.path.realpath(__file__))

Expand Down Expand Up @@ -61,7 +62,9 @@
)

# Borrowed from DPCTL
from dpctl.tensor import __array_api_version__, DLDeviceType
with warnings.catch_warnings():
warnings.simplefilter("ignore", DeprecationWarning)
from dpctl.tensor import __array_api_version__, DLDeviceType

from .dpnp_array import dpnp_array as ndarray
from .dpnp_array_api_info import __array_namespace_info__
Expand Down
Loading