Skip to content

Support parameter out in dpnp.add() #1329

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

Merged
merged 10 commits into from
Apr 3, 2023

Conversation

antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Mar 5, 2023

The PR implements support of out in-place parameter for dpnp.add function.
Additionally __iadd__ function of dpnp_array class is added.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to 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?
  • If this PR is a work in progress, are you filing the PR as a draft?

antonwolfy and others added 3 commits March 9, 2023 12:14
Co-authored-by: vlad-perevezentsev <vladislav.perevezentsev@intel.com>
Co-authored-by: vlad-perevezentsev <vladislav.perevezentsev@intel.com>
@antonwolfy antonwolfy merged commit d41ed51 into IntelPython:master Apr 3, 2023
@antonwolfy antonwolfy deleted the inplace_add branch April 3, 2023 09:36
antonwolfy added a commit that referenced this pull request Jun 6, 2023
* Suppport parameter out in dpnp.add()

* Update tests/test_mathematical.py

Co-authored-by: vlad-perevezentsev <vladislav.perevezentsev@intel.com>

* Update tests/test_mathematical.py

Co-authored-by: vlad-perevezentsev <vladislav.perevezentsev@intel.com>

* Update tests/test_mathematical.py

* Update tests/test_mathematical.py

Co-authored-by: Natalia Polina <natalia.polina@intel.com>

* Use internal _check_nd_call() function which is common for mathematical ones with 2 input arrays

* Add more test for 'out' parameter

---------

Co-authored-by: vlad-perevezentsev <vladislav.perevezentsev@intel.com>
Co-authored-by: Natalia Polina <natalia.polina@intel.com>
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