Skip to content

Support axis=None and keepdims=True/False in argmin and argmax#346

Merged
trxcllnt merged 10 commits intonv-legate:branch-22.05from
trxcllnt:fea/unary-axes
May 25, 2022
Merged

Support axis=None and keepdims=True/False in argmin and argmax#346
trxcllnt merged 10 commits intonv-legate:branch-22.05from
trxcllnt:fea/unary-axes

Conversation

@trxcllnt
Copy link
Contributor

@trxcllnt trxcllnt commented May 11, 2022

This PR is part of the work for #87

I'm taking a slightly less optimal path by flattening then broadcasting to two dimensions when axis=None, because scalar argmin/argmax reductions aren't implemented in libcunumeric yet. I can take a stab at implementing these reductions in C++, but this was a quicker way to achieve the same behavior.

@magnatelee magnatelee mentioned this pull request May 19, 2022
@magnatelee
Copy link
Contributor

@trxcllnt like I said last week, the first bullet is done by #369. You should still try to get your Thrust changes merged.

@trxcllnt trxcllnt requested a review from magnatelee May 23, 2022 19:56
@trxcllnt trxcllnt merged commit ba494ea into nv-legate:branch-22.05 May 25, 2022
manopapad pushed a commit to manopapad/cunumeric that referenced this pull request Sep 7, 2022
…ar` (nv-legate#346)

* Specify the upper bound of return value sizes for core::extract_scalar

* Apply the demux logic for futures to future maps of size 1

* Replace NULL with nullptr
manopapad pushed a commit that referenced this pull request Nov 17, 2024
* fix mypy complaint

* fix repeated import

* different fix
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