Function flatten

  • Flattens a contiguous range of dims into a 1D tensor.

    flatten, unlike other shape operators, returns the input tensor on a no-op (unless a 0D tensor is flattened, in which case it's returned in 1D).

    Parameters

    • a: Tensor
    • startDim: number = 0
    • endDim: number = -1

    Returns Tensor

Generated using TypeDoc