docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method NewTempTensor

    NewTempTensor(TensorShape, DataType)

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

    Declaration
    public Tensor NewTempTensor(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)