Show / Hide Table of Contents

    Method zerosLike

    static member zerosLike: Tensor<'T> -> Tensor<'T>

    Creates a new tensor filled with zeros using the specified tensor as template.

    Declaration
    static member zerosLike: tmpl:Tensor<'T> -> Tensor<'T>
    Parameters
    Type Name Description
    Tensor<'T> tmpl

    The template tensor.

    Returns
    Type Description
    Tensor<'T>

    The new tensor.

    Remarks

    A new tensor is created with the same shape and on the same device as tmpl.

    The tensor is filled with zeros.

    See Also
    static member zeros: ITensorDevice -> int64 list -> Tensor<'T>
    Back to top Generated by DocFX