After i upgraded the mhlo version from 3153643 May 31 2021 to d65972fa Feb 15 2022, i faced a error when i convert HLO_DotGeneralOp.
the file dot_general_test.mlir worked ok for old version, and error for the new version.
the messeage is as follow:
3:10: error: 'mhlo.dot_general' op attribute 'dot_dimension_numbers' failed to satisfy constraint: Attribute that models the dimension information for dot.
%0 = "mhlo.dot_general"(%arg0, %arg1) {dot_dimension_numbers = {lhs_batching_dimensions = dense<0> : tensor<1xi64>, rhs_batching_dimensions = dense<0> : tensor<1xi64>, lhs_contracting_dimensions = dense<2> : tensor<1xi64>, rhs_contracting_dimensions = dense<1> : tensor<1xi64>}, precision_config = ["DEFAULT", "DEFAULT"]} : (tensor<48x64x64xf32>, tensor<48x64x64xf32>) -> tensor<48x64x64xf32>
^
dot_general_test.mlir:3:10: note: see current operation: %0 = "mhlo.dot_general"(%arg0, %arg1) {dot_dimension_numbers = {lhs_batching_dimensions = dense<0> : tensor<1xi64>, lhs_contracting_dimensions = dense<2> : tensor<1xi64>, rhs_batching_dimensions = dense<0> : tensor<1xi64>, rhs_contracting_dimensions = dense<1> : tensor<1xi64>}, precision_config = ["DEFAULT", "DEFAULT"]} : (tensor<48x64x64xf32>, tensor<48x64x64xf32>) -> tensor<48x64x64xf32>