-
Notifications
You must be signed in to change notification settings - Fork 323
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
Add pass for decomposing (log)softmax #6287
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Erik Lundell <[email protected]> Change-Id: Ifda9b5a557ee29af5abc64569c51ec6bd6421c66
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6287
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit de30991 with merge base b1c94ab (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
""" | ||
if op in edge_softmax: | ||
return ( | ||
exir_ops.edge.aten.log.default, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit can we use getattr
and string concat?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a neat suggestion, I'll keep it in mind when implementing a similar decomposition in the future
@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Change-Id: Ifda9b5a557ee29af5abc64569c51ec6bd6421c66