Show / Hide Table of Contents

    Method TransferFrom

    member TransferFrom: Tensor<'T> -> unit

    Transfers the specified tensor located on another device into this tensor.

    Declaration
    member TransferFrom: src:Tensor<'T> -> unit
    Parameters
    Type Name Description
    Tensor<'T> src

    The tensor to transfer from.

    Remarks

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

    Both tensors must have same shape and type.

    If both tensors are located on the same device, a copy is performed.

    Back to top Generated by DocFX