Skip to content

Conversation

nkaretnikov
Copy link
Collaborator

@nkaretnikov nkaretnikov commented Apr 6, 2023

@pytorch-bot
Copy link

pytorch-bot bot commented Apr 6, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/98552

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit ef59b4b:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@nkaretnikov nkaretnikov added ciflow/trunk Trigger trunk jobs on your pull request topic: not user facing topic category ciflow/inductor labels Apr 7, 2023
@nkaretnikov

This comment was marked as resolved.

if self.numel() != 0 and self.ndim != 0:
# Checks that dim is within bounds
maybe_wrap_dim(dim, self.ndim)
return values, indices
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

numel/ndim checks are based on cummax_out

Copy link
Collaborator

Choose a reason for hiding this comment

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

You can maybe just use the same function for both cummax and cummin?

if (input.sym_numel() == 0) {
return input;
}
auto result = at::zeros(input.sizes(), input.options());
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Required to unlock test/functorch/test_aotdispatch.py

@nkaretnikov nkaretnikov requested a review from ezyang April 7, 2023 00:15
@nkaretnikov nkaretnikov marked this pull request as ready for review April 7, 2023 00:15
@nkaretnikov nkaretnikov requested a review from Chillee as a code owner April 7, 2023 00:15
if self.numel() != 0 and self.ndim != 0:
# Checks that dim is within bounds
maybe_wrap_dim(dim, self.ndim)
return values, indices
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can maybe just use the same function for both cummax and cummin?

nkaretnikov added a commit that referenced this pull request Apr 7, 2023
ghstack-source-id: 3685eae
Pull Request resolved: #98552
nkaretnikov added a commit that referenced this pull request Apr 7, 2023
ghstack-source-id: 624c002
Pull Request resolved: #98552
@nkaretnikov
Copy link
Collaborator Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@facebook-github-bot facebook-github-bot deleted the gh/nkaretnikov/89/head branch June 8, 2023 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants