Skip to content

Add support for get_dimension_size op #1273

Add support for get_dimension_size op

Add support for get_dimension_size op #1273

GitHub Actions / MLIR Tests failed Oct 29, 2024 in 0s

147 tests run, 135 passed, 11 skipped, 1 failed.

Annotations

Check failure on line 262 in ttmlir/Silicon/TTNN

See this annotation in the file changed.

@github-actions github-actions / MLIR Tests

ttmlir/Silicon/TTNN.simple_eltwise.mlir

Exit Code: 1
Raw output
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline="system-desc-path=" /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/simple_eltwise.mlir > /__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/Output/simple_eltwise.mlir.tmp.mlir
+ /__w/tt-mlir/tt-mlir/build/bin/ttmlir-opt --ttir-to-ttnn-backend-pipeline=system-desc-path= /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/simple_eltwise.mlir
RUN: at line 2: /opt/ttmlir-toolchain/bin/FileCheck /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/simple_eltwise.mlir --input-file=/__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/Output/simple_eltwise.mlir.tmp.mlir
+ /opt/ttmlir-toolchain/bin/FileCheck /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/simple_eltwise.mlir --input-file=/__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/Output/simple_eltwise.mlir.tmp.mlir
/__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/simple_eltwise.mlir:130:12: error: CHECK: expected string not found in input
 // CHECK: [[VAL:%[0-9]+]] = "ttnn.full"(%{{[0-9]+}}) <{fillValue = 2.100000e+01 : f32}> : (!tt.device<#device>) -> tensor<1xi32, #layout1>
           ^
/__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/Output/simple_eltwise.mlir.tmp.mlir:251:201: note: scanning from here
 %6 = "ttnn.maximum"(%2, %4, %5) <{operandSegmentSizes = array<i32: 2, 1>}> : (tensor<64x128xf32, #layout1>, tensor<64x128xf32, #layout1>, tensor<64x128xf32, #layout2>) -> tensor<64x128xf32, #layout2>
                                                                                                                                                                                                        ^
/__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/Output/simple_eltwise.mlir.tmp.mlir:262:2: note: possible intended match here
 %1 = "ttnn.full"(%0) <{fillValue = 2.100000e+01 : f32}> : (!tt.device<#device>) -> tensor<1xi32, #layout20>
 ^

Input file: /__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/Output/simple_eltwise.mlir.tmp.mlir
Check file: /__w/tt-mlir/tt-mlir/test/ttmlir/Silicon/TTNN/simple_eltwise.mlir

-dump-input=help explains the following input dump.

Input was:
<<<<<<
             .
             .
             .
           246:  "ttnn.dealloc"(%1) : (tensor<64x128xf32, #layout1>) -> () 
           247:  %3 = "ttnn.to_layout"(%arg1) <{layout = #ttnn.layout<tile>}> : (tensor<64x128xf32, #layout>) -> tensor<64x128xf32, #layout1> 
           248:  %4 = "ttnn.to_device"(%3, %0) <{memory_config = #ttnn.memory_config<<interleaved>, <dram>, <<1x1>>>}> : (tensor<64x128xf32, #layout1>, !tt.device<#device>) -> tensor<64x128xf32, #layout1> 
           249:  "ttnn.dealloc"(%3) : (tensor<64x128xf32, #layout1>) -> () 
           250:  %5 = "ttnn.empty"(%0) <{dtype = #tt.supportedDataTypes<f32>, layout = #ttnn.layout<row_major>, memory_config = #ttnn.memory_config<<interleaved>, <dram>, <<64x128>>>, shape = #ttnn.shape<64x128>}> : (!tt.device<#device>) -> tensor<64x128xf32, #layout2> 
           251:  %6 = "ttnn.maximum"(%2, %4, %5) <{operandSegmentSizes = array<i32: 2, 1>}> : (tensor<64x128xf32, #layout1>, tensor<64x128xf32, #layout1>, tensor<64x128xf32, #layout2>) -> tensor<64x128xf32, #layout2> 
check:130'0                                                                                                                                                                                                             X error: no match found
           252:  "ttnn.dealloc"(%4) : (tensor<64x128xf32, #layout1>) -> () 
check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           253:  "ttnn.dealloc"(%2) : (tensor<64x128xf32, #layout1>) -> () 
check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           254:  %7 = "ttnn.from_device"(%6) : (tensor<64x128xf32, #layout2>) -> tensor<64x128xf32, #layout> 
check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           255:  "ttnn.dealloc"(%5) : (tensor<64x128xf32, #layout2>) -> () 
check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           256:  %8 = "ttnn.to_layout"(%7) <{layout = #ttnn.layout<row_major>}> : (tensor<64x128xf32, #layout>) -> tensor<64x128xf32, #layout> 
check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           257:  "ttnn.dealloc"(%7) : (tensor<64x128xf32, #layout>) -> () 
check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           258:  return %8 : tensor<64x128xf32, #layout> 
check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           259:  } 
check:130'0     ~~~
           260:  func.func @get_dimension_size(%arg0: tensor<13x21x3xf32, #layout19>) -> tensor<1xi32, #layout20> { 
check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           261:  %0 = "ttnn.get_device"() <{mesh_shape = #ttnn<mesh_shape 1x1>}> : () -> !tt.device<#device> 
check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           262:  %1 = "ttnn.full"(%0) <{fillValue = 2.100000e+01 : f32}> : (!tt.device<#device>) -> tensor<1xi32, #layout20> 
check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:130'1      ?                                                                                                            possible intended match
           263:  return %1 : tensor<1xi32, #layout20> 
check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           264:  } 
check:130'0     ~~~
           265: } 
check:130'0     ~~
           266:  
check:130'0     ~
>>>>>>

--