MatrixMultOperator

public class MatrixMultOperator: ComputableOperator

matrix multiplication.

Transpose input tensors

Opertor’s attributes transposeA and transposeB indicating if tranposing input tensors before doing calculation. And if any or both of them are set to true, all caulcation and input/output validation will be doing after transposing.

Metal performance shader support

By default, operator tries to use MPSMatrixMultiplication in MetalPerformanceShaders. But on some devices which do not support MetalPerformanceShaders, we use self kernel.

Multiple input

This operator could takein multiple input. Currently, it support multiple input A and single input B. If inputTensors contains more than 2 elements, operator will view last element as input B and all previous element as input As.