stablehlo.dot_general OP specification can be found here.
StableHLO has a more powerful version of matmul which can do a dot product of high rank tensors along any target (contracting) dimensions. If the contracting dimensions are corresponding to standard matmul dimensions that TTIR.MatmulOp uses, we can do the simple conversion stablehlo.dot_general -> ttir.matmul. Otherwise we need to convert stablehlo.dot_general to ttir.transpose + ttir.matmul.
stablehlo.dot_general
OP specification can be found here.StableHLO has a more powerful version of matmul which can do a dot product of high rank tensors along any target (contracting) dimensions. If the contracting dimensions are corresponding to standard matmul dimensions that TTIR.MatmulOp uses, we can do the simple conversion
stablehlo.dot_general -> ttir.matmul
. Otherwise we need to convertstablehlo.dot_general
tottir.transpose + ttir.matmul
.