-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#16758: Optimize usage and implementation of encode/decode tensor data
- Switch to rval inputs for encode/decode and move vectors when possible * Switch to rval for passing buffer in create_row_major_owned_buffer - Skip unnecessary conversion steps in encode/decode tensor data when possible * If no conversions are neeeded, only minor overhead for moving vectors (no copies) - Add support for vectors in convert_layout_row_major_to_tile and convert_layout_tile_to_row_major * Switch to variadic args in template for BufferType * Switch to directly use vectors instead of creating an owned buffer when calling - Cache logical_2d_shape calculation in tensor spec * Move get_2d_shape to tensor layout - Add unnamed namespace around CMAKE_UNIQUE_NAMESPACE in tensor_impl
- Loading branch information
1 parent
be5c2c6
commit db1d0cb
Showing
10 changed files
with
111 additions
and
97 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
Oops, something went wrong.