Struct ONNXTensor
Syntax
Constructors
ONNXTensor(Tensor, Int64[])
Declaration
public ONNXTensor(Tensor data, long[] onnxShape)
Parameters
ONNXTensor(TensorProto)
Declaration
public ONNXTensor(TensorProto onnxTensor)
Parameters
Properties
rank
Declaration
Property Value
shape
Declaration
public long[] shape { get; }
Property Value
Methods
Gather(Int32, Int32[])
Declaration
public ONNXTensor Gather(int axis, int[] indices)
Parameters
Returns
Permute(Int32[])
Declaration
public ONNXTensor Permute(int[] permutations)
Parameters
Type |
Name |
Description |
Int32[] |
permutations |
|
Returns
Reshape(Int64[])
Declaration
public ONNXTensor Reshape(long[] onnxShape)
Parameters
Type |
Name |
Description |
Int64[] |
onnxShape |
|
Returns
Slice(Int32[], Int32[], Int32[])
Declaration
public ONNXTensor Slice(int[] starts, int[] ends, int[] steps)
Parameters
Returns
Squeeze(Int32[])
Declaration
public ONNXTensor Squeeze(int[] axes)
Parameters
Type |
Name |
Description |
Int32[] |
axes |
|
Returns
SqueezeAll()
Declaration
public ONNXTensor SqueezeAll()
Returns
ToBarracuda(String)
Declaration
public Tensor ToBarracuda(string onnxLayout)
Parameters
Type |
Name |
Description |
String |
onnxLayout |
|
Returns
Unsqueeze(Int32[])
Declaration
public ONNXTensor Unsqueeze(int[] axes)
Parameters
Type |
Name |
Description |
Int32[] |
axes |
|
Returns