Show / Hide Table of Contents

    Method copy

    static member copy: Tensor<'T> * TensorOrder option -> Tensor<'T>

    Returns a copy of the tensor.

    Declaration
    static member copy: a:Tensor<'T> * order:TensorOrder option -> Tensor<'T>
    Parameters
    Type Name Description
    Tensor<'T> a

    The tensor to copy.

    TensorOrder option order

    The memory layout of the copy. (default: row-major)

    Returns
    Type Description
    Tensor<'T>

    A copy of the tensor.

    Remarks

    A new tensor is created with the specified memory layout on the same device as the orignal tensor.

    The elements of the original tensor are copied into the new tensor.

    See Also
    member CopyFrom: Tensor<'T> -> unit
    val transfer: Tensor<'T> -> Tensor<'T>
    Back to top Generated by DocFX