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

[Torch] Fix aten::max and aten::min conversion #6372

Merged
merged 2 commits into from
Sep 1, 2020

Conversation

masahi
Copy link
Member

@masahi masahi commented Sep 1, 2020

This is a fix for the issue found by hummingbird project
microsoft/hummingbird#232 (comment)

torch.max and min have 3 cases to handle, but we have conversion only for one of the cases.
https://pytorch.org/docs/stable/generated/torch.max.html

Also added a conversion for leaky_relu_ (seen problems from this op a few times)

please review @siju-samuel

Copy link
Contributor

@t-vi t-vi left a comment

Choose a reason for hiding this comment

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

Looks good other than the print.
Thank you, @masahi!

python/tvm/relay/frontend/pytorch.py Outdated Show resolved Hide resolved
Copy link
Member

@siju-samuel siju-samuel left a comment

Choose a reason for hiding this comment

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

LGTM

@siju-samuel siju-samuel merged commit f56bb71 into apache:master Sep 1, 2020
@siju-samuel
Copy link
Member

Thanks @masahi @t-vi . This is now merged.

kevinthesun pushed a commit to kevinthesun/tvm that referenced this pull request Sep 17, 2020
* fix aten::max and aten::min conversion

* remove print
kevinthesun pushed a commit to kevinthesun/tvm that referenced this pull request Sep 18, 2020
* fix aten::max and aten::min conversion

* remove print
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Sep 18, 2020
* fix aten::max and aten::min conversion

* remove print
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.

3 participants