Show / Hide Table of Contents

    Method reshape

    val reshape: int64 list -> TensorLayout -> TensorLayout

    Reshape layout under the assumption that it is contiguous. The number of elements must not change. An error is raised, if reshape is impossible without copying.

    Declaration
    val reshape: shp:int64 list -> a:TensorLayout -> TensorLayout
    Parameters
    Type Name Description
    int64 list shp
    TensorLayout a
    Returns
    Type Description
    TensorLayout
    Back to top Generated by DocFX