docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Zeros

    Zeros(TensorShape)

    Initializes and returns a tensor with the specified shape and filled with 0.

    Declaration
    public static TensorFloat Zeros(TensorShape shape)
    Parameters
    Type Name Description
    TensorShape shape

    The shape of the tensor.

    Returns
    Type Description
    TensorFloat

    The instantiated zero tensor.

    In This Article
    • Zeros(TensorShape)
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)