Skip to content

Commit

Permalink
Address syntax changes in test files
Browse files Browse the repository at this point in the history
  • Loading branch information
aqjune committed Nov 13, 2024
1 parent 2e53307 commit ca5123f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/litmus/tosa-ops/reduce_sum_int-bad.tgt.mlir
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
func.func @f(%t: tensor<3x3x3xi32>) -> tensor<3x3xi32> {
%0 = "tosa.reduce_sum"(%t) {axis = 1 : i64} : (tensor<3x3x3xi32>) -> tensor<3x1x3xi32>
%0 = "tosa.reduce_sum"(%t) {axis = 1 : i32} : (tensor<3x3x3xi32>) -> tensor<3x1x3xi32>
%res = tensor.collapse_shape %0 [[0, 1], [2]] : tensor<3x1x3xi32> into tensor<3x3xi32>
return %res: tensor<3x3xi32>
}
2 changes: 1 addition & 1 deletion tests/opts/tosa-to-linalg/reduce_sum.tgt.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module {
%4 = arith.addf %arg1, %arg2 : f32
linalg.yield %4 : f32
} -> tensor<4x5xf32>
%3 = tensor.expand_shape %2 [[0, 1], [2]] : tensor<4x5xf32> into tensor<1x4x5xf32>
%3 = tensor.expand_shape %2 [[0, 1], [2]] output_shape [1,4,5] : tensor<4x5xf32> into tensor<1x4x5xf32>
return %3 : tensor<1x4x5xf32>
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/opts/tosa-to-linalg/reduce_sum2.tgt.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module {
%4 = arith.addf %arg1, %arg2 : f32
linalg.yield %4 : f32
} -> tensor<3x5xf32>
%3 = tensor.expand_shape %2 [[0, 1], [2]] : tensor<3x5xf32> into tensor<3x1x5xf32>
%3 = tensor.expand_shape %2 [[0, 1], [2]] output_shape [3,1,5] : tensor<3x5xf32> into tensor<3x1x5xf32>
return %3 : tensor<3x1x5xf32>
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/opts/tosa-to-linalg/reduce_sum3.tgt.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module {
%4 = arith.addf %arg1, %arg2 : f32
linalg.yield %4 : f32
} -> tensor<3x5xf32>
%3 = tensor.expand_shape %2 [[0, 1], [2]] : tensor<3x5xf32> into tensor<3x1x5xf32>
%3 = tensor.expand_shape %2 [[0, 1], [2]] output_shape [3,1,5] : tensor<3x5xf32> into tensor<3x1x5xf32>
return %3 : tensor<3x1x5xf32>
}
}
Expand Down

0 comments on commit ca5123f

Please sign in to comment.