• Reduces the shape by removing all dimensions of shape 1.

    Parameters

    • shape: number[]
    • Optional axis: number[]

    Returns {
        keptDims: number[];
        newShape: number[];
    }

    • keptDims: number[]
    • newShape: number[]

Generated using TypeDoc