-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add argminmax operator #778
base: main
Are you sure you want to change the base?
Conversation
/build |
|
||
static __MATX_INLINE__ constexpr __MATX_HOST__ __MATX_DEVICE__ int32_t Rank() | ||
{ | ||
return matxNoRank; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this have a rank of all the outputs?
@@ -76,6 +76,7 @@ typedef enum { | |||
CUB_OP_SELECT_IDX, | |||
CUB_OP_UNIQUE, | |||
CUB_OP_ARG_REDUCE, | |||
CUB_OP_DUAL_ARG_REDUCE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quad?
@@ -2234,6 +2234,52 @@ void __MATX_INLINE__ argmin_impl(OutType dest, TensorIndexType &idest, const InT | |||
#endif | |||
} | |||
|
|||
/** | |||
* Compute min and max reduction of a tensor and returns value + index |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of an operator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs unit tests and documentation
@tylera-nvidia please look at this one and test the performance if you still have that data. |
TODO: