-
Notifications
You must be signed in to change notification settings - Fork 32
Implement constraints API for MeanOp #2041
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
Milestone
Comments
17 tasks
1 task
arminaleTT
added a commit
that referenced
this issue
Feb 26, 2025
Loading
Loading status checks…
…2273) ### Ticket #2041 #2042 ### Problem description To enable llama to go through the optimizer, we need constraints and runtime APIs for all ops (tracked in #2084). This PR enables these APIs for `mean` and `reshape`. ### What's changed - Added `getOpRuntime()` and `getOpConstraints()` interface methods to `ReshapeOp` and `MeanOp` - Added unit tests for both APIs on both Ops - Closes #2041 - Closes #2042 Note: This PR seems long for a "simple" integration change because both APIs require a manual translation of mlir types down to ttnn types. As a result, opportunities for sharing code across Ops is limited. About 1/3rd of the diff is in unit tests ### Checklist - [x] New/Existing tests provide coverage for changes
jserbedzijaTT
pushed a commit
that referenced
this issue
Mar 1, 2025
…2273) ### Ticket #2041 #2042 ### Problem description To enable llama to go through the optimizer, we need constraints and runtime APIs for all ops (tracked in #2084). This PR enables these APIs for `mean` and `reshape`. ### What's changed - Added `getOpRuntime()` and `getOpConstraints()` interface methods to `ReshapeOp` and `MeanOp` - Added unit tests for both APIs on both Ops - Closes #2041 - Closes #2042 Note: This PR seems long for a "simple" integration change because both APIs require a manual translation of mlir types down to ttnn types. As a result, opportunities for sharing code across Ops is limited. About 1/3rd of the diff is in unit tests ### Checklist - [x] New/Existing tests provide coverage for changes
odjuricicTT
pushed a commit
that referenced
this issue
Mar 8, 2025
…2273) ### Ticket #2041 #2042 ### Problem description To enable llama to go through the optimizer, we need constraints and runtime APIs for all ops (tracked in #2084). This PR enables these APIs for `mean` and `reshape`. ### What's changed - Added `getOpRuntime()` and `getOpConstraints()` interface methods to `ReshapeOp` and `MeanOp` - Added unit tests for both APIs on both Ops - Closes #2041 - Closes #2042 Note: This PR seems long for a "simple" integration change because both APIs require a manual translation of mlir types down to ttnn types. As a result, opportunities for sharing code across Ops is limited. About 1/3rd of the diff is in unit tests ### Checklist - [x] New/Existing tests provide coverage for changes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is needed to run llama sharded.
Reference op constraints implementation: #1554
The text was updated successfully, but these errors were encountered: