-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#0: Use TensorLayout in Tensor (#15028)
### Ticket ### Problem description We're migrating TTNN infrastructure to use new TensorLayout everywhere, including Tensor ### What's changed Introduced `TensorSpec`, which represents `logical_shape` + `tensor_layout` Used `TensorSpec` in Tensor instead of `(shape, dtype, layout, tile)` Refactored Tensor constructors Use `set_tensor_spec` instead of a bunch of different setters, removed the need of manually setting `metadata_populated = true` ### Checklist - [x] [Post commit CI passes](https://github.com/tenstorrent/tt-metal/actions/runs/11960140767) - [ ] Blackhole Post commit (if applicable) - [x] [Model regression CI testing passes](https://github.com/tenstorrent/tt-metal/actions/runs/11956334891) - [x] [Device performance regression CI testing passes](https://github.com/tenstorrent/tt-metal/actions/runs/11956337771) - [ ] New/Existing tests provide coverage for changes
- Loading branch information
1 parent
d8308d7
commit 43ebbcb
Showing
56 changed files
with
641 additions
and
523 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.