-
Notifications
You must be signed in to change notification settings - Fork 525
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
[Tcp] Add lowering from Torch to Tcp for tanh, add, and broadcast ops + Enable e2e tests for Tcp #1695
Conversation
Hey folks, I don't really have the bandwidth to participate in detailed code design or review, so I will let you folks iterate on the branch. Let me know if you need any help with Torch-MLIR integration/etc. |
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.
LGTM! I just have minor comments
"""Base class for TestConfig's that are implemented with linalg-on-tensors. | ||
|
||
This class handles all the common lowering that torch-mlir does before | ||
reaching the linalg-on-tensors abstraction level. |
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.
i think linalg-on-tensors should be tcp
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.
I'm not sure what you are referring to here. This is very similar to MhloBackendTestConfig and TosaBackendTestConfig IIUC.
5bc5545
to
925e534
Compare
Thanks a lot for the review. That is very helpful. |
… + Enable e2e tests for Tcp (#1695) * [Tcp] Update parallel iterator types to use the new enum in TcpToLinalg * [Tcp] Add torch-to-tcp pass * [Tcp] Enable Tcp to Linalg conversion pass when TORCH_MLIR_ENABLE_TCP is set * [Tcp] Add torch backend to tcp backend conversion pipeline * [Tcp] Add e2e test for TCP * [Tcp] Update docker script to enable TCP and its e2e tests
… + Enable e2e tests for Tcp (#1695) * [Tcp] Update parallel iterator types to use the new enum in TcpToLinalg * [Tcp] Add torch-to-tcp pass * [Tcp] Enable Tcp to Linalg conversion pass when TORCH_MLIR_ENABLE_TCP is set * [Tcp] Add torch backend to tcp backend conversion pipeline * [Tcp] Add e2e test for TCP * [Tcp] Update docker script to enable TCP and its e2e tests
This PR is a follow up to #1595. It adds the following:
Each of the above are added as separate commits for easy reviewing.