static postprocessOutputShape(outputShape, aRank, bRank) {
        // Remove prepended dimension if first input is 1d
        if (aRank === 1) {
            // outputShape = outputShape.slice(0, outputShape.length - 2).concat(outputShape.slice(outputShape.length - 1));
            outputShape.splice(outputShape.length - 2, 1);
        }
        // Remove appended dimension if second input is 1d
        if (bRank === 1) {
            outputShape.pop();
        }
    }
/**
     * Fix the output shape computed for MatMul operation if it needs fixing
     * @param outputShape The computed outputShape. Should be an array (atleast of length 2) of positive integers.
     * This will be mutated.
     * @param aRank The rank of tensor A.
     * @param bRank The rank of tensor B.
     */
Fix the output shape computed for MatMul operation if it needs fixing
@param outputShape The computed outputShape. Should be an array (atleast of length 2) of positive integers.
This will be mutated.
@param aRank The rank of tensor A.
@param bRank The rank of tensor B.
Fix the output shape computed for MatMul operation if it needs fixing @param outputShape The computed outputShape . Should be an array ( atleast of length 2 ) of positive integers . This will be mutated . @param aRank The rank of tensor A . @param bRank The rank of tensor B .
static postprocessOutputShape(outputShape, aRank, bRank) {
        if (aRank === 1) {
            outputShape.splice(outputShape.length - 2, 1);
        }
        if (bRank === 1) {
            outputShape.pop();
        }
    }
static postprocessOutputShape ( outputShape , aRank , bRank ) { if ( aRank === 1 ) { outputShape . splice ( outputShape . length - 2 , 1 ) ; } if ( bRank === 1 ) { outputShape . pop ( ) ; } }
Fix the output shape computed for MatMul operation if it needs fixing
 @param outputShape The computed outputShape.
Fix the output shape computed for MatMul operation if it needs fixing @param outputShape The computed outputShape .
// Remove prepended dimension if first input is 1d // outputShape = outputShape.slice(0, outputShape.length - 2).concat(outputShape.slice(outputShape.length - 1)); // Remove appended dimension if second input is 1d