docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Expand

    Expand<T>(T, TensorShape)

    Calculates an output tensor by broadcasting the input tensor into a given shape.

    Declaration
    public T Expand<T>(T X, TensorShape shape) where T : Tensor
    Parameters
    Type Name Description
    T X

    The input tensor.

    TensorShape shape

    The shape to broadcast the input shape together with to calculate the output tensor.

    Returns
    Type Description
    T

    The computed output tensor.

    Type Parameters
    Name Description
    T

    The tensor type of the input and output tensors.

    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)