Class ONNXLayout | Barracuda | 1.0.4
docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX
    on 20 October 2020