Skip to content

Add dpnp.tensor.broadcast_shapes to align with the 2025.12 Python array API - #3009

Merged
antonwolfy merged 9 commits into
masterfrom
add-broadcast_shapes-to-dpnp.tensor
Jul 30, 2026
Merged

Add dpnp.tensor.broadcast_shapes to align with the 2025.12 Python array API#3009
antonwolfy merged 9 commits into
masterfrom
add-broadcast_shapes-to-dpnp.tensor

Conversation

@antonwolfy

@antonwolfy antonwolfy commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

The 2025.12 revision of the Python array API standard adds a standalone broadcast_shapes function that broadcasts one or more shapes (as opposed to arrays) against one another.

The function was already present in the top-level dpnp namespace but missing from dpnp.tensor. This PR closes that gap.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?

@antonwolfy antonwolfy added this to the 0.21.0 release milestone Jul 29, 2026
@antonwolfy antonwolfy self-assigned this Jul 29, 2026
@github-actions

github-actions Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

View rendered docs @ https://intelpython.github.io/dpnp/index.html

@github-actions

github-actions Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Array API standard conformance tests for dpnp=0.21.0dev3=py314h509198e_26 ran successfully.
Passed: 1375
Failed: 2
Skipped: 5

@coveralls

coveralls commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Coverage Status

No base build to compare — add-broadcast_shapes-to-dpnp.tensor into master

@antonwolfy
antonwolfy marked this pull request as ready for review July 29, 2026 16:46
Comment thread dpnp/tensor/_manipulation_functions.py Outdated

@ndgrigorian ndgrigorian left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other than efficiency point LGTM

antonwolfy and others added 2 commits July 30, 2026 14:40
@antonwolfy
antonwolfy merged commit 96ae658 into master Jul 30, 2026
73 of 83 checks passed
@antonwolfy
antonwolfy deleted the add-broadcast_shapes-to-dpnp.tensor branch July 30, 2026 14:30
github-actions Bot added a commit that referenced this pull request Jul 30, 2026
…rray API (#3009)

The 2025.12 revision of the Python array API standard adds a standalone
[`broadcast_shapes`](https://data-apis.org/array-api/2025.12/API_specification/generated/array_api.broadcast_shapes.html)
function that broadcasts one or more *shapes* (as opposed to arrays)
against one another.

The function was already present in the top-level `dpnp` namespace but
missing from `dpnp.tensor`. This PR closes that gap. 96ae658
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants