Class ONNXLayout | Barracuda | 0.5.0-preview
docs.unity.cn
    Show / Hide Table of Contents

    Class ONNXLayout

    Inheritance
    Object
    ONNXLayout
    Namespace: 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
    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[], String)

    Declaration
    public static int[] Permute(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