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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ This release is compatible with NumPy 2.5.
* Fixed incorrect results of `dpnp.tensor.vecdot` in some cases with strided outputs and of `dpnp.tensor` reductions, `dpnp.tensor.vecdot` and `dpnp.tensor.matmul` on large inputs with some data types [#3082](https://github.com/IntelPython/dpnp/pull/3082)
* Fixed `dpnp.median` and `dpnp.nanmedian` raising a `ValueError` for a tuple `axis` when a kept dimension has size 0 [#3081](https://github.com/IntelPython/dpnp/pull/3081)
* Fixed a `RuntimeError` raised by `dpnp.tensor` kernels launched over more than `INT_MAX` work-items when built with DPC++ compiler 2026.2 or newer, by also passing `-fno-sycl-id-queries-fit-in-int` to the linker [#3089](https://github.com/IntelPython/dpnp/pull/3089)
* Fixed `dpnp.__all__` missing `ndarray` and `__array_namespace_info__` and listing `mean`, `median` and `min` twice [#3100](https://github.com/IntelPython/dpnp/pull/3100)

### Security

Expand Down
5 changes: 1 addition & 4 deletions dpnp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@
__all__ = ["__array_namespace_info__", "ndarray"]

# Data types
__all__ = [
__all__ += [
"bool",
"bool_",
"byte",
Expand Down Expand Up @@ -920,9 +920,6 @@
"logaddexp2",
"logsumexp",
"maximum",
"mean",
"median",
"min",
"minimum",
"mod",
"modf",
Expand Down
16 changes: 16 additions & 0 deletions dpnp/tests/test_public_api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import pytest

import dpnp


class TestAll:
def test_no_duplicates(self):
assert len(dpnp.__all__) == len(set(dpnp.__all__))

def test_names_resolve(self):
missing = [name for name in dpnp.__all__ if not hasattr(dpnp, name)]
assert not missing

@pytest.mark.parametrize("name", ["__array_namespace_info__", "ndarray"])
def test_contains(self, name):
assert name in dpnp.__all__
Loading