-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor API fixes for TTNN encoding ettribute (#1390)
This PR adds couple convenience methods to TTNN tensor encoding attribute and also removes redundant utils functions. Renaming/Adding some new functions... * `getDataType` to get scalar data type: * `memref<2x2x!tt.tile<32x32xf32>>` returns float data type * `memref<128x128xi32>` returns int data type * `getElementType` to get type from memref: * `memref<2x2x!tt.tile<32x32xf32>>` returns TileType * `memref<128x128xi32>` returns IntegerType * `getLayout` - gets layout of encoding i.e Tile/RowMajor * `getShardShape`: * `memref<2x2x!tt.tile<32x32xf32>>` returns `(2, 2)` * `memref<128x128xi32>` returns `(128, 128)` * `getScalarShardShape`: * `memref<2x2x!tt.tile<32x32xf32>>` returns `(64, 64)` * `memref<128x128xi32>` returns `(128, 128)`
- Loading branch information
1 parent
b198668
commit d22057f
Showing
7 changed files
with
121 additions
and
138 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
Oops, something went wrong.