Class StatsOps
Syntax
public class StatsOps : IOps, IModelCompiler
Constructors
StatsOps(IOps)
Declaration
public StatsOps(IOps ops)
Parameters
Type |
Name |
Description |
IOps |
ops |
|
Methods
Elementwise(Tensor, Int64)
Declaration
protected void Elementwise(Tensor X, long aluOperationsPerElement = 1L)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Int64 |
aluOperationsPerElement |
|
ElementwiseBroadcast(Tensor[], Tensor, Int64)
Declaration
protected void ElementwiseBroadcast(Tensor[] tensors, Tensor X, long aluOperationsPerElement = 1L)
Parameters
PreExecuteLayer(Layer, Tensor[])
Declaration
public virtual void PreExecuteLayer(Layer layer, Tensor[] inputs)
Parameters
PrepareModel(Model, IDictionary<String, TensorShape>)
Declaration
public virtual void PrepareModel(Model model, IDictionary<string, TensorShape> inputShapes)
Parameters
Reduce(Tensor, Tensor, Int64)
Declaration
protected void Reduce(Tensor X, Tensor O, long aluOperationsPerElement = 1L)
Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides
Explicit Interface Implementations
IOps.Abs(Tensor)
Declaration
Tensor IOps.Abs(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.Add(Tensor[])
Declaration
Tensor IOps.Add(Tensor[] tensors)
Parameters
Type |
Name |
Description |
Tensor[] |
tensors |
|
Returns
Implements
IOps.AvgPool2D(Tensor, Int32[], Int32[], Int32[])
Declaration
Tensor IOps.AvgPool2D(Tensor X, int[] pool, int[] stride, int[] pad)
Parameters
Returns
Implements
IOps.Border2D(Tensor, Int32[], Single)
Declaration
Tensor IOps.Border2D(Tensor X, int[] pad, float value)
Parameters
Returns
Implements
IOps.Ceil(Tensor)
Declaration
Tensor IOps.Ceil(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.Clip(Tensor, Single, Single)
Declaration
Tensor IOps.Clip(Tensor X, float min, float max)
Parameters
Returns
Implements
IOps.Concat(Tensor[], Int32)
Declaration
Tensor IOps.Concat(Tensor[] tensors, int axis)
Parameters
Returns
Implements
IOps.Conv2D(Tensor, Tensor, Tensor, Int32[], Int32[], Layer.FusedActivation)
Declaration
Tensor IOps.Conv2D(Tensor X, Tensor K, Tensor B, int[] stride, int[] pad, Layer.FusedActivation fusedActivation)
Parameters
Returns
Implements
IOps.Conv2DTrans(Tensor, Tensor, Tensor, Int32[], Int32[], Int32[], Layer.FusedActivation)
Declaration
Tensor IOps.Conv2DTrans(Tensor X, Tensor K, Tensor B, int[] stride, int[] pad, int[] outputAdjustment, Layer.FusedActivation fusedActivation)
Parameters
Returns
Implements
IOps.Copy(Tensor)
Declaration
Tensor IOps.Copy(Tensor x)
Parameters
Type |
Name |
Description |
Tensor |
x |
|
Returns
Implements
IOps.Dense(Tensor, Tensor, Tensor, Layer.FusedActivation)
Declaration
Tensor IOps.Dense(Tensor X, Tensor W, Tensor B, Layer.FusedActivation fusedActivation)
Parameters
Returns
Implements
IOps.DepthToSpace(Tensor, Int32[], Layer.DepthToSpaceMode)
Declaration
Tensor IOps.DepthToSpace(Tensor X, int[] scale, Layer.DepthToSpaceMode mode)
Parameters
Returns
Implements
IOps.DepthwiseConv2D(Tensor, Tensor, Tensor, Int32[], Int32[], Layer.FusedActivation)
Declaration
Tensor IOps.DepthwiseConv2D(Tensor X, Tensor K, Tensor B, int[] stride, int[] pad, Layer.FusedActivation fusedActivation)
Parameters
Returns
Implements
IOps.Div(Tensor[])
Declaration
Tensor IOps.Div(Tensor[] tensors)
Parameters
Type |
Name |
Description |
Tensor[] |
tensors |
|
Returns
Implements
IOps.Dropout(Tensor, Single)
Declaration
Tensor IOps.Dropout(Tensor X, float alpha)
Parameters
Returns
Implements
IOps.Elu(Tensor, Single)
Declaration
Tensor IOps.Elu(Tensor X, float alpha)
Parameters
Returns
Implements
IOps.Equal(Tensor, Tensor)
Declaration
Tensor IOps.Equal(Tensor a, Tensor b)
Parameters
Returns
Implements
IOps.Exp(Tensor)
Declaration
Tensor IOps.Exp(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.Expand(Tensor, TensorShape)
Declaration
Tensor IOps.Expand(Tensor X, TensorShape shape)
Parameters
Returns
Implements
IOps.Flatten(Tensor)
Declaration
Tensor IOps.Flatten(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.Floor(Tensor)
Declaration
Tensor IOps.Floor(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.Gather(Tensor[], Int32)
Declaration
Tensor IOps.Gather(Tensor[] tensors, int axis)
Parameters
Returns
Implements
IOps.GlobalAvgPool2D(Tensor)
Declaration
Tensor IOps.GlobalAvgPool2D(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.GlobalAvgVariancePool2D(Tensor)
Declaration
Tensor IOps.GlobalAvgVariancePool2D(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.GlobalMaxPool2D(Tensor)
Declaration
Tensor IOps.GlobalMaxPool2D(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.Greater(Tensor, Tensor)
Declaration
Tensor IOps.Greater(Tensor a, Tensor b)
Parameters
Returns
Implements
IOps.GreaterEqual(Tensor, Tensor)
Declaration
Tensor IOps.GreaterEqual(Tensor a, Tensor b)
Parameters
Returns
Implements
IOps.LeakyRelu(Tensor, Single)
Declaration
Tensor IOps.LeakyRelu(Tensor X, float alpha)
Parameters
Returns
Implements
IOps.Less(Tensor, Tensor)
Declaration
Tensor IOps.Less(Tensor a, Tensor b)
Parameters
Returns
Implements
IOps.LessEqual(Tensor, Tensor)
Declaration
Tensor IOps.LessEqual(Tensor a, Tensor b)
Parameters
Returns
Implements
IOps.Log(Tensor)
Declaration
Tensor IOps.Log(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.LogicalAnd(Tensor, Tensor)
Declaration
Tensor IOps.LogicalAnd(Tensor a, Tensor b)
Parameters
Returns
Implements
IOps.LogicalNot(Tensor)
Declaration
Tensor IOps.LogicalNot(Tensor x)
Parameters
Type |
Name |
Description |
Tensor |
x |
|
Returns
Implements
IOps.LogicalOr(Tensor, Tensor)
Declaration
Tensor IOps.LogicalOr(Tensor a, Tensor b)
Parameters
Returns
Implements
IOps.LogicalXor(Tensor, Tensor)
Declaration
Tensor IOps.LogicalXor(Tensor a, Tensor b)
Parameters
Returns
Implements
IOps.LogSoftmax(Tensor)
Declaration
Tensor IOps.LogSoftmax(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.LRN(Tensor, Single, Single, Single, Int32)
Declaration
Tensor IOps.LRN(Tensor X, float alpha, float beta, float bias, int size)
Parameters
Returns
Implements
IOps.MatMul(Tensor, Boolean, Tensor, Boolean)
Declaration
Tensor IOps.MatMul(Tensor X, bool xTranspose, Tensor Y, bool yTranspose)
Parameters
Returns
Implements
IOps.Max(Tensor[])
Declaration
Tensor IOps.Max(Tensor[] tensors)
Parameters
Type |
Name |
Description |
Tensor[] |
tensors |
|
Returns
Implements
IOps.MaxPool2D(Tensor, Int32[], Int32[], Int32[])
Declaration
Tensor IOps.MaxPool2D(Tensor X, int[] pool, int[] stride, int[] pad)
Parameters
Returns
Implements
IOps.Mean(Tensor[])
Declaration
Tensor IOps.Mean(Tensor[] tensors)
Parameters
Type |
Name |
Description |
Tensor[] |
tensors |
|
Returns
Implements
IOps.Min(Tensor[])
Declaration
Tensor IOps.Min(Tensor[] tensors)
Parameters
Type |
Name |
Description |
Tensor[] |
tensors |
|
Returns
Implements
IOps.Mul(Tensor[])
Declaration
Tensor IOps.Mul(Tensor[] tensors)
Parameters
Type |
Name |
Description |
Tensor[] |
tensors |
|
Returns
Implements
IOps.Multinomial(Tensor, Int32, Int32)
Declaration
Tensor IOps.Multinomial(Tensor X, int count, int seed)
Parameters
Returns
Implements
IOps.Neg(Tensor)
Declaration
Tensor IOps.Neg(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.Normalization(Tensor, Tensor, Tensor, Int32, Int32, Single, Layer.FusedActivation)
Declaration
Tensor IOps.Normalization(Tensor X, Tensor S, Tensor B, int pool, int axis, float epsilon, Layer.FusedActivation fusedActivation)
Parameters
Returns
Implements
IOps.OneHot(Tensor, Int32, Single, Single)
Declaration
Tensor IOps.OneHot(Tensor X, int depth, float onValue, float offValue)
Parameters
Returns
Implements
IOps.Pad2DEdge(Tensor, Int32[])
Declaration
Tensor IOps.Pad2DEdge(Tensor X, int[] pad)
Parameters
Returns
Implements
IOps.Pad2DReflect(Tensor, Int32[])
Declaration
Tensor IOps.Pad2DReflect(Tensor X, int[] pad)
Parameters
Returns
Implements
IOps.Pad2DSymmetric(Tensor, Int32[])
Declaration
Tensor IOps.Pad2DSymmetric(Tensor X, int[] pad)
Parameters
Returns
Implements
IOps.Pow(Tensor, Single)
Declaration
Tensor IOps.Pow(Tensor X, float alpha)
Parameters
Returns
Implements
IOps.Pow(Tensor[])
Declaration
Tensor IOps.Pow(Tensor[] tensors)
Parameters
Type |
Name |
Description |
Tensor[] |
tensors |
|
Returns
Implements
IOps.PRelu(Tensor, Tensor)
Declaration
Tensor IOps.PRelu(Tensor X, Tensor S)
Parameters
Returns
Implements
IOps.Prepare(Tensor)
Declaration
Tensor IOps.Prepare(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.RandomNormal(TensorShape, Single, Single, Int32)
Declaration
Tensor IOps.RandomNormal(TensorShape s, float mean, float scale, int seed)
Parameters
Returns
Implements
Declaration
Tensor IOps.RandomUniform(TensorShape s, float mean, float scale, int seed)
Parameters
Returns
Implements
IOps.Reciprocal(Tensor)
Declaration
Tensor IOps.Reciprocal(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.ReduceMax(Tensor, Int32)
Declaration
Tensor IOps.ReduceMax(Tensor X, int axis)
Parameters
Returns
Implements
IOps.ReduceMean(Tensor, Int32)
Declaration
Tensor IOps.ReduceMean(Tensor X, int axis)
Parameters
Returns
Implements
IOps.ReduceMin(Tensor, Int32)
Declaration
Tensor IOps.ReduceMin(Tensor X, int axis)
Parameters
Returns
Implements
IOps.ReduceProd(Tensor, Int32)
Declaration
Tensor IOps.ReduceProd(Tensor X, int axis)
Parameters
Returns
Implements
IOps.ReduceSum(Tensor, Int32)
Declaration
Tensor IOps.ReduceSum(Tensor X, int axis)
Parameters
Returns
Implements
IOps.Relu(Tensor)
Declaration
Tensor IOps.Relu(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.Relu6(Tensor)
Declaration
Tensor IOps.Relu6(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.Resample2D(Tensor, Int32[], Boolean)
Declaration
Tensor IOps.Resample2D(Tensor X, int[] size, bool bilinear)
Parameters
Returns
Implements
IOps.ResetAllocator(Boolean)
Declaration
void IOps.ResetAllocator(bool keepCachedMemory)
Parameters
Type |
Name |
Description |
Boolean |
keepCachedMemory |
|
Implements
IOps.Reshape(Tensor, TensorShape)
Declaration
Tensor IOps.Reshape(Tensor X, TensorShape shape)
Parameters
Returns
Implements
IOps.ScaleBias(Tensor, Tensor, Tensor)
Declaration
Tensor IOps.ScaleBias(Tensor X, Tensor S, Tensor B)
Parameters
Returns
Implements
IOps.Selu(Tensor, Single, Single)
Declaration
Tensor IOps.Selu(Tensor X, float alpha, float gamma)
Parameters
Returns
Implements
IOps.Sigmoid(Tensor)
Declaration
Tensor IOps.Sigmoid(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.Softmax(Tensor)
Declaration
Tensor IOps.Softmax(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.SpaceToDepth(Tensor, Int32[])
Declaration
Tensor IOps.SpaceToDepth(Tensor X, int[] scale)
Parameters
Returns
Implements
IOps.Sqrt(Tensor)
Declaration
Tensor IOps.Sqrt(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.StridedSlice(Tensor, Int32[], Int32[], Int32[])
Declaration
Tensor IOps.StridedSlice(Tensor X, int[] starts, int[] ends, int[] strides)
Parameters
Returns
Implements
IOps.Sub(Tensor[])
Declaration
Tensor IOps.Sub(Tensor[] tensors)
Parameters
Type |
Name |
Description |
Tensor[] |
tensors |
|
Returns
Implements
IOps.Swish(Tensor)
Declaration
Tensor IOps.Swish(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.Tanh(Tensor)
Declaration
Tensor IOps.Tanh(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.Tile(Tensor, Int32[])
Declaration
Tensor IOps.Tile(Tensor X, int[] repeats)
Parameters
Returns
Implements
IOps.Transpose(Tensor)
Declaration
Tensor IOps.Transpose(Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Implements
IOps.Upsample2D(Tensor, Int32[], Boolean)
Declaration
Tensor IOps.Upsample2D(Tensor X, int[] scale, bool bilinear)
Parameters
Returns
Implements