Class ONNXLayout | Barracuda | 0.7.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class ONNXLayout

    Inheritance
    Object
    ONNXLayout
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Barracuda
    Syntax
    public class ONNXLayout

    Methods

    AxisPermutationsForMappingONNXLayoutToBarracuda(Int32, String)

    Declaration
    public static int[] AxisPermutationsForMappingONNXLayoutToBarracuda(int onnxRank, string onnxLayout = "NCHW")
    Parameters
    Type Name Description
    Int32 onnxRank
    String onnxLayout
    Returns
    Type Description
    Int32[]

    ConvertAxisToBarracuda(Int32, Int32, String)

    Declaration
    public static int ConvertAxisToBarracuda(int axis, int onnxRank, string onnxLayout)
    Parameters
    Type Name Description
    Int32 axis
    Int32 onnxRank
    String onnxLayout
    Returns
    Type Description
    Int32

    ConvertShapeToBarracuda(Int64[], String)

    Declaration
    public static TensorShape ConvertShapeToBarracuda(long[] onnxShape, string onnxLayout)
    Parameters
    Type Name Description
    Int64[] onnxShape
    String onnxLayout
    Returns
    Type Description
    TensorShape

    ConvertSymbolicShapeToBarracuda(TensorShapeProto, String)

    Declaration
    public static int[] ConvertSymbolicShapeToBarracuda(TensorShapeProto shape, string onnxLayout)
    Parameters
    Type Name Description
    Onnx.TensorShapeProto shape
    String onnxLayout
    Returns
    Type Description
    Int32[]

    ConvertSymbolicShapeToBarracuda(Int64[], String)

    Declaration
    public static int[] ConvertSymbolicShapeToBarracuda(long[] onnxShape, string onnxLayout)
    Parameters
    Type Name Description
    Int64[] onnxShape
    String onnxLayout
    Returns
    Type Description
    Int32[]

    InversePermute(Int32[])

    Declaration
    public static int[] InversePermute(int[] permutations)
    Parameters
    Type Name Description
    Int32[] permutations
    Returns
    Type Description
    Int32[]

    Permute(Int32[], Int32[])

    Declaration
    public static int[] Permute(int[] shape, int[] permutations)
    Parameters
    Type Name Description
    Int32[] shape
    Int32[] permutations
    Returns
    Type Description
    Int32[]

    Permute(Int64[], Int32[])

    Declaration
    public static long[] Permute(long[] shape, int[] permutations)
    Parameters
    Type Name Description
    Int64[] shape
    Int32[] permutations
    Returns
    Type Description
    Int64[]

    PermuteToBarracuda(Int64[], String)

    Declaration
    public static int[] PermuteToBarracuda(long[] shape, string onnxLayout)
    Parameters
    Type Name Description
    Int64[] shape
    String onnxLayout
    Returns
    Type Description
    Int32[]
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023