-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Deprecate support for ROW_MAJOR BFLOAT8_B/BFLOAT4_B tensors on host * Throw warning when users try to convert layout for BFLOAT8_B/BFLOAT4_B dtypes * Throw warning and return original input tensor instead of assert in pad op if input is not ROW_MAJOR layout ** This is a workaround to support old test code that tries to: 1. Create BFLOAT8_B tensors in ROW_MAJOR 2. Pad up to tile sizes 3. Convert layout to TILE ** Now, we just directly pad and return in TILE layout on the first step * Update tensor creation with float vectors to always output TILE layout for BFLOAT8_B/BFLOAT4_B dtypes ** Automatically add padding to tile sizes if needed ** Throw warning if requested layout is not TILE ** Remove duplicate code by calling a helper function for the different pybinds ** Remove support for BFLOAT8_B/BFLOAT4_B in create_owned_buffer_from_vector_of_floats * Update conv weights utils to do layout conversion in FLOAT32, then unpack and re-pack into BFLOAT8_B/BFLOAT4_B ** This is strictly better for host-side perf since we eliminate one unecessary pack * Remove duplicate code in handling of BFLOAT8_B/BFLOAT4_B dtypes in pytensor - Update convert_layout to use 2D physical shape for all underlying conversions * Top level convert layout has a pass to flatten shape for existing use cases * Remove padding support for tilize_nchw since this is unused at this level * Remove recursive calls inside convert layout to simplify logic * Switch convert_layout_row_major_to_tile and convert_layout_tile_to_row_major to use 2D physical shape * Update tests/tt_metal/tt_metal/test_bcast.cpp to handle padding for tile externally - Fix segfault when calling tensor creation with float vectors with device = None
- Loading branch information
1 parent
5df8746
commit ab3dc0c
Showing
9 changed files
with
265 additions
and
315 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
Oops, something went wrong.