Show / Hide Table of Contents

    Method tryReshape

    val tryReshape: int64 list -> TensorLayout -> TensorLayout option

    Reshape layout under the assumption that it is contiguous. The number of elements must not change. Returns Some newLayout when reshape is possible without copy Returns None when a copy is required.

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