-
Notifications
You must be signed in to change notification settings - Fork 129
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
Cleanup Max and Argmax #901
Conversation
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.
Some small comments, looks good to me
out = makeKeepDims(a, out, axis) | ||
argout = makeKeepDims(a, argout, axis) | ||
return [out, argout] | ||
return [ |
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.
Do we still need max_and_argmax
? I thought the original reason for it was because the two operations were originally fused somehow, so when you asked for one you got the other one "for free". Seems like they are fully separate now.
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.
They are, now the function is just a backwards compat tiny wrapper
pytensor/tensor/elemwise.py
Outdated
@@ -1220,6 +1220,20 @@ class CAReduce(COp): | |||
|
|||
__props__ = ("scalar_op", "axis", "dtype", "acc_dtype", "upcast_discrete_output") | |||
|
|||
@classmethod |
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.
This looks more like a staticmethod
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #901 +/- ##
=======================================
Coverage 81.23% 81.24%
=======================================
Files 170 170
Lines 47008 46920 -88
Branches 11516 11482 -34
=======================================
- Hits 38187 38120 -67
+ Misses 6612 6600 -12
+ Partials 2209 2200 -9
|
d1b0d8a
to
0f87a69
Compare
0f87a69
to
6cb0302
Compare
Description
Spinoff from #888 and follow up to #731
Related Issue
Checklist
Type of change