docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method NewOutputTensor

    NewOutputTensor(TensorShape, DataType)

    Allocate a new Tensor of a given shape and data type using the AllocScope.LayerOutput scope.

    Declaration
    Tensor NewOutputTensor(TensorShape shape, DataType dataType)
    Parameters
    Type Name Description
    TensorShape shape

    The shape of the tensor.

    DataType dataType

    The data type of the tensor.

    Returns
    Type Description
    Tensor

    The allocated tensor.

    In This Article
    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)