docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Transpose

    Transpose(int[])

    Creates a TensorShape by permuting axes. For example, if this is (6, 7, 8, 9), and permutations is {3, 0, 1, 2}, the method returns (9, 6, 7, 8).

    Declaration
    public TensorShape Transpose(int[] permutations)
    Parameters
    Type Name Description
    int[] permutations

    An array indexing the new tensor axis from the old ones.

    Returns
    Type Description
    TensorShape

    The transposed tensor shape.

    Transpose()

    Creates a TensorShape by reversing axes. For example, if this is (6, 7, 8, 9), the method returns (9, 8, 7, 6).

    Declaration
    public TensorShape Transpose()
    Returns
    Type Description
    TensorShape

    The transposed tensor shape.

    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)