Skip to content

Extend dpnp.pad to support pad_width as a dictionary #2535

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Jul 23, 2025

The PR adds support of pad_width keyword as a dictionary to align with the behavior in numpy.pad function.

  • 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.19.0 release milestone Jul 23, 2025
@antonwolfy antonwolfy self-assigned this Jul 23, 2025
Copy link
Contributor

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

Copy link
Contributor

Array API standard conformance tests for dpnp=0.19.0dev1=py313h509198e_20 ran successfully.
Passed: 1227
Failed: 0
Skipped: 9

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 72.064% (-0.03%) from 72.097%
when pulling 0b1fd1c on numpy_pad_dict
into 9fc84dc on master.

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.

2 participants