[Integrate] Update torch-mlir to 6bd5747c (#25137) Updates torch-mlir from `llvm/torch-mlir@201b80fb` to [`llvm/torch-mlir@6bd5747c`](https://github.com/llvm/torch-mlir/commit/6bd5747c069836c4f35048f571c0be1d3d222b8c), using [`iree-org/torch-mlir@08a77254`](https://github.com/iree-org/torch-mlir/commit/08a772545eb3cdb4f95961fe08d18d3a0632932a) (`sm-iree-integrates/torch-20261029`). The integration branch is upstream torch-mlir plus one commit that points its LLVM and StableHLO submodules at IREE's current versions. Two patches from the previous pin are now upstream (llvm/torch-mlir#4802), so they were dropped: `SymbolOpInterface` for `ClassTypeOp`/`GlobalSlotOp`, and the TMTensor strict-properties fix. TMTensor ops now use the strict property syntax, so the TMTensor tests use `<dimension_map = [0]>` and `<scale = 0.125>`. ONNX op tests: no expectation changes in the CPU configs. Signed-off-by: Roberto Laudani <laudani@roofline.ai>
diff --git a/compiler/plugins/input/Torch/InputConversion/test/attention.mlir b/compiler/plugins/input/Torch/InputConversion/test/attention.mlir index aec8ce1..3a8ab7b 100644 --- a/compiler/plugins/input/Torch/InputConversion/test/attention.mlir +++ b/compiler/plugins/input/Torch/InputConversion/test/attention.mlir
@@ -70,7 +70,7 @@ // ----- func.func @attention_scaled(%arg0: tensor<1x3x4xf32>, %arg1: tensor<1x3x4xf32>, %arg2: tensor<1x3x4xf32>, %arg3: tensor<1x3x4xf32>) -> (tensor<1x3x4xf32>) { - %0 = tm_tensor.attention {scale = 0.125 : f64} ins(%arg0, %arg1, %arg2 : tensor<1x3x4xf32>, tensor<1x3x4xf32>, tensor<1x3x4xf32>) outs(%arg3: tensor<1x3x4xf32>) -> tensor<1x3x4xf32> + %0 = tm_tensor.attention <scale = 0.125> ins(%arg0, %arg1, %arg2 : tensor<1x3x4xf32>, tensor<1x3x4xf32>, tensor<1x3x4xf32>) outs(%arg3: tensor<1x3x4xf32>) -> tensor<1x3x4xf32> return %0 : tensor<1x3x4xf32> }
diff --git a/compiler/plugins/input/Torch/InputConversion/test/scatter.mlir b/compiler/plugins/input/Torch/InputConversion/test/scatter.mlir index 37dbad5..9e29799 100644 --- a/compiler/plugins/input/Torch/InputConversion/test/scatter.mlir +++ b/compiler/plugins/input/Torch/InputConversion/test/scatter.mlir
@@ -3,7 +3,7 @@ func.func @scatter_update( %original: tensor<8xi32>, %indices: tensor<3x1xi32>, %updates: tensor<3xi32>) -> tensor<8xi32> { - %0 = tm_tensor.scatter {dimension_map = array<i64: 0>} unique_indices(true) + %0 = tm_tensor.scatter <dimension_map = [0]> unique_indices(true) ins(%updates, %indices : tensor<3xi32>, tensor<3x1xi32>) outs(%original : tensor<8xi32>) { ^bb0(%update: i32, %orig: i32): @@ -29,7 +29,7 @@ func.func @scatter_add( %original: tensor<8xi32>, %indices: tensor<3x1xi32>, %updates: tensor<3xi32>) -> tensor<8xi32> { - %0 = tm_tensor.scatter {dimension_map = array<i64: 0>} unique_indices(true) + %0 = tm_tensor.scatter <dimension_map = [0]> unique_indices(true) ins(%updates, %indices : tensor<3xi32>, tensor<3x1xi32>) outs(%original : tensor<8xi32>) { ^bb0(%update: i32, %orig: i32):
diff --git a/third_party/torch-mlir b/third_party/torch-mlir index 52f5c1c..08a7725 160000 --- a/third_party/torch-mlir +++ b/third_party/torch-mlir
@@ -1 +1 @@ -Subproject commit 52f5c1c4b86cc812227367c7c49c2d3f40b69e57 +Subproject commit 08a772545eb3cdb4f95961fe08d18d3a0632932a