docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Transpose

    Transpose(Tensor, Tensor)

    Calculates an output tensor by reversing the dimensions of the input tensor.

    Declaration
    public virtual void Transpose(Tensor X, Tensor O)
    Parameters
    Type Name Description
    Tensor X

    The input tensor.

    Tensor O

    The output tensor to be computed and filled.

    Implements
    IBackend.Transpose(Tensor, Tensor)

    Transpose(Tensor, Tensor, int[])

    Calculates an output tensor by permuting the axes and data of the input tensor according to the given permutations.

    Declaration
    public virtual void Transpose(Tensor X, Tensor O, int[] permutations)
    Parameters
    Type Name Description
    Tensor X

    The input tensor.

    Tensor O

    The output tensor to be computed and filled.

    int[] permutations

    The axes to sample the output tensor from in the input tensor.

    Implements
    IBackend.Transpose(Tensor, Tensor, int[])
    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)