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

Replace RefineTypes with dtype functions #2105

Merged
merged 1 commit into from
May 12, 2023

Conversation

ramiro050
Copy link
Collaborator

@ramiro050 ramiro050 commented May 9, 2023

This commit adds dtype functions for all the torch ops that did not previously have one and removes the pass RefineTypes, since the abstract interpretation library now takes care of all the dtype propagation.

All dtype functions added are tested except for

  • aten.embedding
  • aten._embedding_bag
  • aten.embedding_bag

These functions need a change to the testing framework to allow specifying the actual data inside the tensor used for testing. I will fix this in a follow up patch.

Co-authored-by: Jiahao Li [email protected]

@ramiro050 ramiro050 force-pushed the merge-main-full-squash branch from e81b862 to 2c0c953 Compare May 9, 2023 20:35
@ramiro050 ramiro050 linked an issue May 9, 2023 that may be closed by this pull request
23 tasks
@ramiro050 ramiro050 marked this pull request as ready for review May 9, 2023 20:47
Copy link
Contributor

@silvasean silvasean left a comment

Choose a reason for hiding this comment

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

Nice work landing this! Just a few nits 🚀

@silvasean
Copy link
Contributor

Big thanks to Jiahao Li and any others that helped with this migration! ❤️

This commit adds dtype functions for all the torch ops that did not
previously have one and removes the pass `RefineTypes`, since the
abstract interpretation library now takes care of all the dtype
propagation.

All dtype functions added are tested except for
- `aten.embedding`
- `aten._embedding_bag`
- `aten.embedding_bag`

These functions need a change to the testing framework to allow
specifying the actual data inside the tensor used for testing. I will
fix this in a follow up patch.

Co-authored-by: Jiahao Li <[email protected]>
@ramiro050 ramiro050 force-pushed the merge-main-full-squash branch from 2c0c953 to 706e505 Compare May 12, 2023 19:11
@ramiro050 ramiro050 merged commit de02b56 into llvm:main May 12, 2023
@ramiro050 ramiro050 deleted the merge-main-full-squash branch May 12, 2023 20:40
gpetters94 pushed a commit to gpetters94/mlir-npcomp that referenced this pull request Jul 7, 2023
This commit adds dtype functions for all the torch ops that did not
previously have one and removes the pass `RefineTypes`, since the
abstract interpretation library now takes care of all the dtype
propagation.

All dtype functions added are tested except for
- `aten.embedding`
- `aten._embedding_bag`
- `aten.embedding_bag`

These functions need a change to the testing framework to allow
specifying the actual data inside the tensor used for testing. I will
fix this in a follow up patch.

Co-authored-by: Jiahao Li <[email protected]>
gpetters94 pushed a commit to gpetters94/mlir-npcomp that referenced this pull request Jul 7, 2023
This commit adds dtype functions for all the torch ops that did not
previously have one and removes the pass `RefineTypes`, since the
abstract interpretation library now takes care of all the dtype
propagation.

All dtype functions added are tested except for
- `aten.embedding`
- `aten._embedding_bag`
- `aten.embedding_bag`

These functions need a change to the testing framework to allow
specifying the actual data inside the tensor used for testing. I will
fix this in a follow up patch.

Co-authored-by: Jiahao Li <[email protected]>
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.

Push for finishing transition to Python dtype functions
2 participants