From bd6304794fc386f13b92afe44c6b0be255c80dd6 Mon Sep 17 00:00:00 2001 From: Sankar Manoj Date: Thu, 23 Jan 2025 14:47:26 +0000 Subject: [PATCH] #0: Changed default layout to RM --- .../unit_tests/operations/test_new_conv2d.py | 6 +++-- .../conv_bmm_tilize_col_major_out_blocks.cpp | 24 ++++++++++++------- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/tests/ttnn/unit_tests/operations/test_new_conv2d.py b/tests/ttnn/unit_tests/operations/test_new_conv2d.py index 76d1c93014f2..51f319507063 100644 --- a/tests/ttnn/unit_tests/operations/test_new_conv2d.py +++ b/tests/ttnn/unit_tests/operations/test_new_conv2d.py @@ -65,7 +65,7 @@ def run_conv( padded_input_channels=None, fp32_accum=False, packer_l1_acc=False, - output_layout=ttnn.TILE_LAYOUT, + output_layout=ttnn.ROW_MAJOR_LAYOUT, deallocate_activation=False, debug=False, groups=1, @@ -87,6 +87,8 @@ def run_conv( else: total_batch_size = batch_size + if output_layout == ttnn.ROW_MAJOR_LAYOUT and activations_dtype == ttnn.bfloat8_b: + pytest.skip("Row major layout not compatible with bfloat8_b") torch.manual_seed(0) conv_input_shape = [total_batch_size, input_channels, input_height, input_width] conv_weight_shape = [output_channels, input_channels // groups, filter_height, filter_width] @@ -1257,7 +1259,7 @@ def test_resnet50_conv_wh_fp32( ) @pytest.mark.parametrize( "activations_dtype", - [ttnn.bfloat8_b], + [ttnn.bfloat16], ) @pytest.mark.parametrize("math_fidelity", [ttnn.MathFidelity.LoFi]) @pytest.mark.parametrize("enable_auto_formatting", [True, False]) diff --git a/ttnn/cpp/ttnn/operations/conv/conv2d/device/kernels/conv_bmm_tilize_col_major_out_blocks.cpp b/ttnn/cpp/ttnn/operations/conv/conv2d/device/kernels/conv_bmm_tilize_col_major_out_blocks.cpp index 2b450e642586..ffd1d51f14b4 100644 --- a/ttnn/cpp/ttnn/operations/conv/conv2d/device/kernels/conv_bmm_tilize_col_major_out_blocks.cpp +++ b/ttnn/cpp/ttnn/operations/conv/conv2d/device/kernels/conv_bmm_tilize_col_major_out_blocks.cpp @@ -142,7 +142,7 @@ void MAIN { // DPRINT<<"out_subblock_num_tiles: "<