This repository was archived by the owner on Jul 13, 2026. It is now read-only.
Implementation for dpnp.empty_like(), dpnp.zeros_like() and dpnp.ones_like()#928
Merged
diptorupd merged 1 commit intoFeb 28, 2023
Merged
Conversation
chudur-budur
force-pushed
the
dpnp/zero-one-empty-like
branch
from
February 27, 2023 05:55
1d979d2 to
0fcad68
Compare
20 tasks
chudur-budur
marked this pull request as ready for review
February 27, 2023 16:06
chudur-budur
requested review from
diptorupd and
mingjie-intel
as code owners
February 27, 2023 16:06
chudur-budur
force-pushed
the
dpnp/zero-one-empty-like
branch
from
February 27, 2023 16:12
c180c8b to
65c949e
Compare
chudur-budur
force-pushed
the
dpnp/zero-one-empty-like
branch
2 times, most recently
from
February 27, 2023 17:08
51ecb8a to
bae2a43
Compare
Contributor
Author
|
Yea removed |
chudur-budur
force-pushed
the
dpnp/zero-one-empty-like
branch
from
February 28, 2023 01:13
bae2a43 to
973516a
Compare
dpnp.ones_like(). This follows numba's recipe, doesn't support shape override.
chudur-budur
force-pushed
the
dpnp/zero-one-empty-like
branch
from
February 28, 2023 01:16
973516a to
64351f3
Compare
Contributor
|
@chudur-budur Thanks! It is interesting that we can create a dpnp array from these new constructors from a NumPy array. Does dpnp even support such a feature. I am merging as is, we can revisit later if needed. |
github-actions Bot
added a commit
that referenced
this pull request
Feb 28, 2023
Implementation for dpnp.empty_like(), dpnp.zeros_like() and dpnp.ones_like() 5d311b0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementation for overloading
dpnp.empty_like(),dpnp.zeros_like()anddpnp.ones_like()type of functions.This also does code-reorganization in
arrayobj.py