Skip to content
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

Adding support for take_along_axis and put_along_axis #436

Merged
merged 23 commits into from
Jul 30, 2022

Conversation

ipdemes
Copy link
Contributor

@ipdemes ipdemes commented Jun 29, 2022

No description provided.

cunumeric/module.py Outdated Show resolved Hide resolved
@ipdemes ipdemes requested a review from bryevdv July 4, 2022 17:27
cunumeric/module.py Outdated Show resolved Hide resolved
cunumeric/module.py Outdated Show resolved Hide resolved
cunumeric/module.py Show resolved Hide resolved
cunumeric/module.py Show resolved Hide resolved
cunumeric/module.py Outdated Show resolved Hide resolved
@ipdemes ipdemes requested a review from bryevdv July 5, 2022 22:29
cunumeric/module.py Outdated Show resolved Hide resolved
@ipdemes ipdemes requested a review from manopapad July 27, 2022 18:27
cunumeric/module.py Outdated Show resolved Hide resolved
cunumeric/module.py Outdated Show resolved Hide resolved
axis : int
The axis to take 1d slices along. If axis is None, the destination
array is treated as if a flattened 1d view had been created of it.
`axis=None` case is currenlty supported only for 1D input arrays.
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: "currently"

a.shape, computed_axis, indices
)
a[ind] = values
return
Copy link
Contributor

Choose a reason for hiding this comment

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

No need for a return statement here

@@ -2545,7 +2545,8 @@ def take_along_axis(a: ndarray, indices: ndarray, axis: int) -> ndarray:
Returns
-------
out: ndarray (Ni..., J, Nk...)
The indexed result.
The indexed result. It is going to be a vew to `arr` for most cases,
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: "view"

Copy link
Contributor

@manopapad manopapad left a comment

Choose a reason for hiding this comment

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

Some typos, otherwise looks good

@ipdemes ipdemes merged commit 9d6e41c into nv-legate:branch-22.07 Jul 30, 2022
sbak5 pushed a commit to sbak5/cunumeric that referenced this pull request Aug 17, 2022
 adding support for take_along_axis and put_along_axis
@ipdemes ipdemes deleted the take_along_axis branch January 12, 2023 05:20
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