Skip to content

Conversation

@antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Nov 7, 2025

The PR adds implementation of dpnp.ndarray.tobytes method converting the array to numpy.ndarray and calling .tobytes(...) for the result.

  • 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.20.0 release milestone Nov 7, 2025
@antonwolfy antonwolfy self-assigned this Nov 7, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2025

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

@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2025

Array API standard conformance tests for dpnp=0.20.0dev0=py313h509198e_42 ran successfully.
Passed: 1229
Failed: 0
Skipped: 7

@coveralls
Copy link
Collaborator

coveralls commented Nov 7, 2025

Coverage Status

coverage: 81.401% (+0.001%) from 81.4%
when pulling ec857a3 on add-tobytes-method
into 203c9a0 on master.

@antonwolfy antonwolfy marked this pull request as ready for review November 7, 2025 16:06
Examples
--------
>>> import numpy as np
>>> import dpnp as np
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update the same line in def poisson and def rayleigh as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was intended to keep that as it is now. The functions needs to be fully reworked and the whole docstrings have to be updated there, not only examples.

Copy link
Contributor

@vlad-perevezentsev vlad-perevezentsev left a comment

Choose a reason for hiding this comment

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

LGTM
Thank you @antonwolfy

@antonwolfy antonwolfy merged commit aec0164 into master Nov 10, 2025
89 of 96 checks passed
@antonwolfy antonwolfy deleted the add-tobytes-method branch November 10, 2025 17:12
github-actions bot added a commit that referenced this pull request Nov 10, 2025
The PR adds implementation of `dpnp.ndarray.tobytes` method converting
the array to `numpy.ndarray` and calling `.tobytes(...)` for the result. aec0164
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