Class ONNXLayout
Syntax
Methods
Declaration
public static int[] AxisPermutationsForMappingONNXLayoutToBarracuda(int onnxRank, string onnxLayout = "NCHW")
Parameters
Returns
ConvertAxisToBarracuda(Int32, Int32, String)
Declaration
public static int ConvertAxisToBarracuda(int axis, int onnxRank, string onnxLayout)
Parameters
Returns
ConvertShapeToBarracuda(Int64[], String)
Declaration
public static TensorShape ConvertShapeToBarracuda(long[] onnxShape, string onnxLayout)
Parameters
Type |
Name |
Description |
Int64[] |
onnxShape |
|
String |
onnxLayout |
|
Returns
ConvertSymbolicShapeToBarracuda(TensorShapeProto, String)
Declaration
public static int[] ConvertSymbolicShapeToBarracuda(TensorShapeProto shape, string onnxLayout)
Parameters
Type |
Name |
Description |
Onnx.TensorShapeProto |
shape |
|
String |
onnxLayout |
|
Returns
ConvertSymbolicShapeToBarracuda(Int64[], String)
Declaration
public static int[] ConvertSymbolicShapeToBarracuda(long[] onnxShape, string onnxLayout)
Parameters
Type |
Name |
Description |
Int64[] |
onnxShape |
|
String |
onnxLayout |
|
Returns
InversePermute(Int32[])
Declaration
public static int[] InversePermute(int[] permutations)
Parameters
Type |
Name |
Description |
Int32[] |
permutations |
|
Returns
Permute(Int32[], Int32[])
Declaration
public static int[] Permute(int[] shape, int[] permutations)
Parameters
Type |
Name |
Description |
Int32[] |
shape |
|
Int32[] |
permutations |
|
Returns
Permute(Int64[], Int32[])
Declaration
public static long[] Permute(long[] shape, int[] permutations)
Parameters
Type |
Name |
Description |
Int64[] |
shape |
|
Int32[] |
permutations |
|
Returns
PermuteToBarracuda(Int64[], String)
Declaration
public static int[] PermuteToBarracuda(long[] shape, string onnxLayout)
Parameters
Returns