docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ToArray

    ToArray()

    Returns the TensorShape as an array of integers. For example if the TensorShape is (5, 2, 3, 4), the method returns new[] {5, 2, 3, 4}.

    Declaration
    public int[] ToArray()
    Returns
    Type Description
    int[]

    An integer array representation of the 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)