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

Lower cummax op #8491

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

zyy-martin
Copy link

@zyy-martin zyy-martin commented Dec 13, 2024

Implement cummax op. Fixes #8230

Cummax returns a tuple of (values, indices). This PR uses the ReduceWindowWithGeneralPadding XLA op (padding + window reducer for cumulative values) to implement it similar to cumsum/cumprod. The only difference is that the indices will be passed to the ReduceWindowWithGeneralPadding op along with the values, and a new reducer is implemented to look at both the value and index of input and return a tuple of (max_value, max_index).

@zyy-martin zyy-martin marked this pull request as ready for review December 18, 2024 19:21
@zyy-martin zyy-martin changed the title implement cummax op Lower cummax op Dec 18, 2024
@miladm miladm requested review from bhavya01 and ManfeiBai December 20, 2024 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lower cummax
3 participants