Skip to content

Commit

Permalink
Update Silicon/TTNN/simple_reductions.mlir with case to repro tenstor…
Browse files Browse the repository at this point in the history
…rent/tt-metal/issues/15167

 - Originally found by tt-forge-fe training test during tt-metal uplift
  • Loading branch information
kmabeeTT committed Nov 19, 2024
1 parent d8b1ac7 commit 15c5c76
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/ttmlir/Silicon/TTNN/simple_reductions.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ func.func @sum_last_2_dims(%arg0: tensor<1x32x512x64xbf16>) -> tensor<1x32xbf16>
return %1 : tensor<1x32xbf16>
}

func.func @sum_first_dim(%arg0: tensor<64x10xf32>) -> tensor<1x10xf32> {
%0 = tensor.empty() : tensor<1x10xf32>
%1 = "ttir.sum"(%arg0, %0) <{dim_arg = [-2 : i32], keep_dim = true, operand_constraints = [#any_device, #any_device]}> : (tensor<64x10xf32>, tensor<1x10xf32>) -> tensor<1x10xf32>
return %1: tensor<1x10xf32>
}

func.func @mean(%arg0: tensor<1x1x512x64xbf16>) -> tensor<1x1x512xbf16> {
%0 = tensor.empty() : tensor<1x1x512xbf16>
// CHECK: %[[C:.*]] = "ttnn.mean"[[C:.*]]
Expand Down

0 comments on commit 15c5c76

Please sign in to comment.