Class UnsafeArrayCPUOps
Inheritance
UnsafeArrayCPUOps
Syntax
public class UnsafeArrayCPUOps : ReferenceCPUOps, IOps
Constructors
UnsafeArrayCPUOps(ITensorAllocator)
Declaration
public UnsafeArrayCPUOps(ITensorAllocator allocator = null)
Parameters
Methods
Add(Tensor[])
Declaration
public override Tensor Add(Tensor[] tensors)
Parameters
Type |
Name |
Description |
Tensor[] |
tensors |
|
Returns
Overrides
Border2D(Tensor, Int32[], Single)
Declaration
public override Tensor Border2D(Tensor X, int[] pad, float constant)
Parameters
Returns
Overrides
Conv2D(Tensor, Tensor, Tensor, Int32[], Int32[])
Declaration
public override Tensor Conv2D(Tensor X, Tensor K, Tensor B, int[] stride, int[] pad)
Parameters
Returns
Overrides
CopyAndReshape(Tensor, TensorShape)
Declaration
protected override Tensor CopyAndReshape(Tensor X, TensorShape shape)
Parameters
Returns
Overrides
Dense(Tensor, Tensor, Tensor)
Declaration
public override Tensor Dense(Tensor X, Tensor W, Tensor B)
Parameters
Returns
Overrides
Div(Tensor[])
Declaration
public override Tensor Div(Tensor[] tensors)
Parameters
Type |
Name |
Description |
Tensor[] |
tensors |
|
Returns
Overrides
Elu(Tensor, Single)
Declaration
public override Tensor Elu(Tensor X, float alpha)
Parameters
Returns
Overrides
Equal(Tensor, Tensor)
Declaration
public override Tensor Equal(Tensor A, Tensor B)
Parameters
Returns
Overrides
Exp(Tensor)
Declaration
public override Tensor Exp(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Overrides
Greater(Tensor, Tensor)
Declaration
public override Tensor Greater(Tensor A, Tensor B)
Parameters
Returns
Overrides
GreaterEqual(Tensor, Tensor)
Declaration
public override Tensor GreaterEqual(Tensor A, Tensor B)
Parameters
Returns
Overrides
Less(Tensor, Tensor)
Declaration
public override Tensor Less(Tensor A, Tensor B)
Parameters
Returns
Overrides
LessEqual(Tensor, Tensor)
Declaration
public override Tensor LessEqual(Tensor A, Tensor B)
Parameters
Returns
Overrides
LogicalAnd(Tensor, Tensor)
Declaration
public override Tensor LogicalAnd(Tensor A, Tensor B)
Parameters
Returns
Overrides
LogicalNot(Tensor)
Declaration
public override Tensor LogicalNot(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Overrides
LogicalOr(Tensor, Tensor)
Declaration
public override Tensor LogicalOr(Tensor A, Tensor B)
Parameters
Returns
Overrides
LogicalXor(Tensor, Tensor)
Declaration
public override Tensor LogicalXor(Tensor A, Tensor B)
Parameters
Returns
Overrides
MatMul(Tensor, Boolean, Tensor, Boolean)
Declaration
public override Tensor MatMul(Tensor X, bool xTranspose, Tensor Y, bool yTranspose)
Parameters
Returns
Overrides
Max(Tensor[])
Declaration
public override Tensor Max(Tensor[] tensors)
Parameters
Type |
Name |
Description |
Tensor[] |
tensors |
|
Returns
Overrides
MaxPool2D(Tensor, Int32[], Int32[], Int32[])
Declaration
public override Tensor MaxPool2D(Tensor X, int[] pool, int[] stride, int[] pad)
Parameters
Returns
Overrides
Min(Tensor[])
Declaration
public override Tensor Min(Tensor[] tensors)
Parameters
Type |
Name |
Description |
Tensor[] |
tensors |
|
Returns
Overrides
Mul(Tensor[])
Declaration
public override Tensor Mul(Tensor[] tensors)
Parameters
Type |
Name |
Description |
Tensor[] |
tensors |
|
Returns
Overrides
Neg(Tensor)
Declaration
public override Tensor Neg(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Overrides
Pad2DEdge(Tensor, Int32[])
Declaration
public override Tensor Pad2DEdge(Tensor X, int[] pad)
Parameters
Returns
Overrides
Pad2DReflect(Tensor, Int32[])
Declaration
public override Tensor Pad2DReflect(Tensor X, int[] pad)
Parameters
Returns
Overrides
Pad2DSymmetric(Tensor, Int32[])
Declaration
public override Tensor Pad2DSymmetric(Tensor X, int[] pad)
Parameters
Returns
Overrides
Pin(Tensor)
Declaration
public static UnsafeArrayTensorData Pin(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
PRelu(Tensor, Tensor)
Declaration
public override Tensor PRelu(Tensor X, Tensor S)
Parameters
Returns
Overrides
Prepare(Tensor)
Declaration
public override Tensor Prepare(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Overrides
Relu(Tensor)
Declaration
public override Tensor Relu(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Overrides
Sigmoid(Tensor)
Declaration
public override Tensor Sigmoid(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Overrides
Sqrt(Tensor)
Declaration
public override Tensor Sqrt(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Overrides
Sub(Tensor[])
Declaration
public override Tensor Sub(Tensor[] tensors)
Parameters
Type |
Name |
Description |
Tensor[] |
tensors |
|
Returns
Overrides
Swish(Tensor)
Declaration
public override Tensor Swish(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Overrides
Tanh(Tensor)
Declaration
public override Tensor Tanh(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Overrides