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

Fix ONNX symbolic for argmin and argmax #18261

Closed
wants to merge 1 commit into from

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.

@@ -1690,10 +1690,10 @@ def narrow(g, input, dim, start, length):


@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