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

Implement operations cummax, cummin #8013

Merged
merged 1 commit into from
Sep 15, 2024
Merged

Implement operations cummax, cummin #8013

merged 1 commit into from
Sep 15, 2024

Conversation

guyao
Copy link
Contributor

@guyao guyao commented Sep 14, 2024

The return type of pytorch cummax/cummin is tuple of two output tensors (values, indices).

However jax cummax/cummin does not return same result.

Implement this operation using associative_scan with running min/max reduce function.

resolves #7373
resolves #7374

The return type of pytorch cummax/cummin is tuple of two output tensors (values, indices).

However jax cummax/cummin does not return same result.

Implement this operation using `associative_scan` with running min/max reduce function.
Copy link
Collaborator

@ManfeiBai ManfeiBai left a comment

Choose a reason for hiding this comment

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

Thanks for the totally clean implementation, LGTM

@ManfeiBai ManfeiBai merged commit 2a5897d into pytorch:master Sep 15, 2024
3 checks passed
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.

Op info test for cummin Op info test for cummax
2 participants