Skip to content

Commit

Permalink
Add Silicon/TTNN/regression/unsqueeze.mlir was hitting assert in tt-f…
Browse files Browse the repository at this point in the history
…orge-fe recently
  • Loading branch information
kmabeeTT committed Dec 20, 2024
1 parent 8f870a8 commit 3ee3cba
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/ttmlir/Silicon/TTNN/regression/unsqueeze.mlir
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// RUN: ttmlir-opt --ttir-to-ttnn-backend-pipeline="system-desc-path=%system_desc_path%" %s > %t.mlir
// RUN: FileCheck %s --input-file=%t.mlir
// RUN: ttmlir-translate --ttnn-to-flatbuffer %t.mlir > %t.ttnn
module @Unsqueeze attributes {} {
func.func @forward(%arg0: tensor<32xbf16> {ttir.name = "a"}) -> (tensor<1x32xbf16> {ttir.name = "Unsqueeze_393.output_unsqueeze_1214"}) {
%0 = tensor.empty() : tensor<1x32xbf16>
// CHECK: %[[C:.*]] = "ttnn.reshape"[[C:.*]]
%1 = "ttir.unsqueeze"(%arg0, %0) <{dim = 0 : si32}> : (tensor<32xbf16>, tensor<1x32xbf16>) -> tensor<1x32xbf16>
return %1 : tensor<1x32xbf16>
}
}

0 comments on commit 3ee3cba

Please sign in to comment.