Skip to content

Conversation

@houseroad
Copy link
Member

Fix the problem introduced in #17103

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@houseroad has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.


@parse_args('v', 'i', 'i')
def _argmax(g, input, dim, keepdim):
def argmax(g, input, dim, keepdim):
Copy link
Collaborator

Choose a reason for hiding this comment

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

What would happen if dim=None? Does this need special handling?

Copy link
Member Author

Choose a reason for hiding this comment

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

this is another feature we need to support. if dim is None, if it will do the argmax on the flattened tensor. I will add this support in a different PR.

@houseroad
Copy link
Member Author

#18263 to track this issue. I will land this diff as it is to fix the CI.

@VitalyFedyunin
Copy link
Contributor

Thanks for fixing it so fast!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants