Class Ops
Represents an object for carrying out tensor operations.
Implements
Inherited Members
Namespace: Unity.Sentis
Assembly: solution.dll
Syntax
public abstract class Ops : IDisposable
Constructors
| Name | Description |
|---|---|
| Ops(BackendType, ITensorAllocator) | Instantiates and returns an |
Properties
| Name | Description |
|---|---|
| backendType | The backend type for the operation execution. |
Methods
| Name | Description |
|---|---|
| Abs(TensorFloat) | Computes an output tensor by applying the element-wise |
| Abs(TensorInt) | Computes an output tensor by applying the element-wise |
| Acos(TensorFloat) | Computes an output tensor by applying the element-wise |
| Acosh(TensorFloat) | Computes an output tensor by applying the element-wise |
| Add(float, TensorFloat) | Performs an element-wise |
| Add(TensorFloat, float) | Performs an element-wise |
| Add(TensorFloat, TensorFloat) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Add(TensorInt, TensorInt) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| And(TensorInt, TensorInt) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| ArgMax(TensorFloat, int, bool, bool) | Computes the indices of the maximum elements of the input tensor along a given axis. |
| ArgMax(TensorInt, int, bool, bool) | Computes the indices of the maximum elements of the input tensor along a given axis. |
| ArgMin(TensorFloat, int, bool, bool) | Computes the indices of the minimum elements of the input tensor along a given axis. |
| ArgMin(TensorInt, int, bool, bool) | Computes the indices of the minimum elements of the input tensor along a given axis. |
| Asin(TensorFloat) | Computes an output tensor by applying the element-wise |
| Asinh(TensorFloat) | Computes an output tensor by applying the element-wise |
| Atan(TensorFloat) | Computes an output tensor by applying the element-wise |
| Atanh(TensorFloat) | Computes an output tensor by applying the element-wise |
| AveragePool(TensorFloat, int[], int[], int[]) | Calculates an output tensor by pooling the mean values of the input tensor across its spatial dimensions according to the given pool and stride values. |
| Bernoulli(TensorFloat, DataType, float?) | Generates an output tensor with values 0 or 1 from a Bernoulli distribution. The input tensor contains the probabilities to use for generating the output values. |
| Cast(Tensor, DataType) | Computes the output tensor using an element-wise |
| Ceil(TensorFloat) | Computes an output tensor by applying the element-wise |
| Celu(TensorFloat, float) | Computes an output tensor by applying the element-wise |
| Clip(TensorFloat, float, float) | Computes an output tensor by applying the element-wise |
| Clip(TensorInt, int, int) | Computes an output tensor by applying the element-wise |
| Concat(Tensor[], int) | Calculates an output tensor by concatenating the input tensors along a given axis. |
| ConstantOfShape(TensorShape, int) | Generates a tensor with a given shape filled with a given value. |
| ConstantOfShape(TensorShape, float) | Generates a tensor with a given shape filled with a given value. |
| Conv(TensorFloat, TensorFloat, TensorFloat, int, int[], int[], int[]) | Applies a convolution filter to an input tensor. |
| ConvTranspose(TensorFloat, TensorFloat, TensorFloat, int[], int[], int[]) | Applies a transpose convolution filter to an input tensor. |
| Copy<T>(T) | Creates a copy of a given input tensor with the same shape and values. |
| Cos(TensorFloat) | Computes an output tensor by applying the element-wise |
| Cosh(TensorFloat) | Computes an output tensor by applying the element-wise |
| CumSum(TensorFloat, int, bool, bool) | Performs the cumulative sum along a given axis. |
| CumSum(TensorInt, int, bool, bool) | Performs the cumulative sum along a given axis. |
| Dense(TensorFloat, TensorFloat, TensorFloat) | Performs a matrix multiplication operation: f(X, w, b) = X x W + B. This supports numpy-style broadcasting of input tensors. |
| DepthToSpace(TensorFloat, int, DepthToSpaceMode) | Computes the output tensor by permuting data from depth into blocks of spatial data. |
| Dispose() | Disposes of the |
| Div(TensorFloat, float) | Performs an element-wise |
| Div(TensorFloat, TensorFloat) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Div(TensorInt, TensorInt) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Elu(TensorFloat, float) | Computes an output tensor by applying the element-wise |
| Equal(TensorFloat, TensorFloat) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Equal(TensorInt, TensorInt) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Erf(TensorFloat) | Computes an output tensor by applying the element-wise |
| Exp(TensorFloat) | Computes an output tensor by applying the element-wise |
| Expand<T>(T, TensorShape) | Calculates an output tensor by broadcasting the input tensor into a given shape. |
| FMod(TensorFloat, TensorFloat) | Performs an element-wise The sign of the remainder is the same as the sign of the dividend, as in C#. This supports numpy-style broadcasting of input tensors. |
| FMod(TensorInt, TensorInt) | Performs an element-wise The sign of the remainder is the same as the sign of the dividend, as in C#. This supports numpy-style broadcasting of input tensors. |
| Floor(TensorFloat) | Computes an output tensor by applying the element-wise |
| GatherElements<T>(T, TensorInt, int) | Takes values from the input tensor indexed by the indices tensor along a given axis and concatenates them. |
| GatherND<T>(T, TensorInt, int) | Takes slices of values from the batched input tensor indexed by the |
| Gather<T>(T, TensorInt, int) | Takes values from the input tensor indexed by the indices tensor along a given axis and concatenates them. |
| Gelu(TensorFloat) | Computes an output tensor by applying the element-wise |
| GlobalAveragePool(TensorFloat) | Calculates an output tensor by pooling the mean values of the input tensor across all of its spatial dimensions. The spatial dimensions of the output are size 1. |
| GlobalMaxPool(TensorFloat) | Calculates an output tensor by pooling the maximum values of the input tensor across all of its spatial dimensions. The spatial dimensions of the output are size 1. |
| Greater(TensorFloat, TensorFloat) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Greater(TensorInt, TensorInt) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| GreaterOrEqual(TensorFloat, TensorFloat) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| GreaterOrEqual(TensorInt, TensorInt) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| HardSigmoid(TensorFloat, float, float) | Computes an output tensor by applying the element-wise |
| HardSwish(TensorFloat) | Computes an output tensor by applying the element-wise |
| Hardmax(TensorFloat, int) | Computes an output tensor by applying the |
| InstanceNormalization(TensorFloat, TensorFloat, TensorFloat, float) | Computes the mean variance on the spatial dimensions of the input tensor and normalizes them according to |
| IsInf(TensorFloat, bool, bool) | Performs an element-wise |
| IsNaN(TensorFloat) | Performs an element-wise |
| LRN(TensorFloat, float, float, float, int) | Normalizes the input tensor over local input regions. |
| LayerNormalization(TensorFloat, TensorFloat, TensorFloat, float) | Computes the mean variance on the last dimension of the input tensor and normalizes it according to |
| LeakyRelu(TensorFloat, float) | Computes an output tensor by applying the element-wise |
| Less(TensorFloat, TensorFloat) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Less(TensorInt, TensorInt) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| LessOrEqual(TensorFloat, TensorFloat) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| LessOrEqual(TensorInt, TensorInt) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Log(TensorFloat) | Computes an output tensor by applying the element-wise |
| LogSoftmax(TensorFloat, int) | Computes an output tensor by applying the |
| Mad(TensorFloat, float, float) | Performs an element-wise |
| MatMul(TensorFloat, TensorFloat) | Performs a multi-dimensional matrix multiplication operation: f(a, b) = a x b. |
| MatMul2D(TensorFloat, TensorFloat, bool, bool) | Performs a matrix multiplication operation with optional transposes: f(a, b) = a' x b'. |
| Max(params TensorFloat[]) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Max(params TensorInt[]) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| MaxPool(TensorFloat, int[], int[], int[]) | Calculates an output tensor by pooling the maximum values of the input tensor across its spatial dimensions according to the given pool and stride values. |
| Mean(params TensorFloat[]) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Min(params TensorFloat[]) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Min(params TensorInt[]) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Mod(TensorInt, TensorInt) | Performs an element-wise The sign of the remainder is the same as the sign of the divisor, as in Python. This supports numpy-style broadcasting of input tensors. |
| Mul(float, TensorFloat) | Performs an element-wise |
| Mul(TensorFloat, float) | Performs an element-wise |
| Mul(TensorFloat, TensorFloat) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Mul(TensorInt, TensorInt) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Multinomial(TensorFloat, int, float?) | Represents a |
| Neg(TensorFloat) | Computes an output tensor by applying the element-wise |
| Neg(TensorInt) | Computes an output tensor by applying the element-wise |
| Not(TensorInt) | Performs an element-wise |
| OneHot(TensorInt, int, int, int, int) | Generates a one-hot tensor with a given |
| Or(TensorInt, TensorInt) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| PRelu(TensorFloat, TensorFloat) | Computes an output tensor by applying the element-wise |
| Pad(TensorFloat, ReadOnlySpan<int>, PadMode, float) | Calculates the output tensor by adding padding to the input tensor according to the given padding values and mode. |
| Pow(TensorFloat, TensorFloat) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Pow(TensorFloat, TensorInt) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| RandomNormal(TensorShape, float, float, float?) | Generates an output tensor of a given shape with random values in a normal distribution with given |
| RandomUniform(TensorShape, float, float, float?) | Generates an output tensor of a given shape with random values in a uniform distribution between a given |
| Range(int, int, int) | Generates a 1D output tensor where the values form an arithmetic progression defined by the |
| Range(float, float, float) | Generates a 1D output tensor where the values form an arithmetic progression defined by the |
| Reciprocal(TensorFloat) | Computes an output tensor by applying the element-wise |
| ReduceL1(TensorFloat, ReadOnlySpan<int>, bool) | Reduces an input tensor along the given axes using the |
| ReduceL1(TensorInt, ReadOnlySpan<int>, bool) | Reduces an input tensor along the given axes using the |
| ReduceL2(TensorFloat, ReadOnlySpan<int>, bool) | Reduces an input tensor along the given axes using the |
| ReduceLogSum(TensorFloat, ReadOnlySpan<int>, bool) | Reduces an input tensor along the given axes using the |
| ReduceLogSumExp(TensorFloat, ReadOnlySpan<int>, bool) | Reduces an input tensor along the given axes using the |
| ReduceMax(TensorFloat, ReadOnlySpan<int>, bool) | Reduces an input tensor along the given axes using the |
| ReduceMax(TensorInt, ReadOnlySpan<int>, bool) | Reduces an input tensor along the given axes using the |
| ReduceMean(TensorFloat, ReadOnlySpan<int>, bool) | Reduces an input tensor along the given axes using the |
| ReduceMin(TensorFloat, ReadOnlySpan<int>, bool) | Reduces an input tensor along the given axes using the |
| ReduceMin(TensorInt, ReadOnlySpan<int>, bool) | Reduces an input tensor along the given axes using the |
| ReduceProd(TensorFloat, ReadOnlySpan<int>, bool) | Reduces an input tensor along the given axes using the |
| ReduceProd(TensorInt, ReadOnlySpan<int>, bool) | Reduces an input tensor along the given axes using the |
| ReduceSum(TensorFloat, ReadOnlySpan<int>, bool) | Reduces an input tensor along the given axes using the |
| ReduceSum(TensorInt, ReadOnlySpan<int>, bool) | Reduces an input tensor along the given axes using the |
| ReduceSumSquare(TensorFloat, ReadOnlySpan<int>, bool) | Reduces an input tensor along the given axes using the |
| ReduceSumSquare(TensorInt, ReadOnlySpan<int>, bool) | Reduces an input tensor along the given axes using the |
| Relu(TensorFloat) | Computes an output tensor by applying the element-wise |
| Relu6(TensorFloat) | Computes an output tensor by applying the element-wise |
| Reshape<T>(T, TensorShape) | Calculates an output tensor by copying the data from the input tensor and using a given shape. The data from the input tensor is unchanged. |
| Resize(TensorFloat, ReadOnlySpan<float>, InterpolationMode, NearestMode, CoordTransformMode) | Calculates an output tensor by resampling the input tensor along the spatial dimensions with given scales. |
| RoiAlign(TensorFloat, TensorFloat, TensorInt, RoiPoolingMode, int, int, int, float) | Calculates an output tensor by pooling the input tensor across each region of interest given by the |
| Round(TensorFloat) | Computes an output tensor by applying the element-wise If the fractional part is equal to 0.5, rounds to the nearest even integer. |
| ScaleBias(TensorFloat, TensorFloat, TensorFloat) | Computes the output tensor with an element-wise |
| ScatterElements<T>(T, TensorInt, T, int, ScatterReductionMode) | Copies the input tensor and updates values at indexes specified by the
|
| ScatterND(TensorFloat, TensorInt, TensorFloat, ScatterReductionMode) | Copies the input tensor and updates values at indexes specified by the
|
| ScatterND(TensorInt, TensorInt, TensorInt, ScatterReductionMode) | Copies the input tensor and updates values at indexes specified by the
|
| Selu(TensorFloat, float, float) | Computes an output tensor by applying the element-wise |
| Set<T>(T, T, int, int, int) | Updates values of A with values from B similar to setting a slice in numpy. A[..., start:end, ....] = B This returns a new tensor rather than working on A in-place. This supports numpy-style one-directional broadcasting of B into A. |
| Shrink(TensorFloat, float, float) | Computes an output tensor by applying the element-wise |
| Sigmoid(TensorFloat) | Computes an output tensor by applying the element-wise |
| Sign(TensorFloat) | Performs an element-wise |
| Sign(TensorInt) | Performs an element-wise |
| Sin(TensorFloat) | Computes an output tensor by applying the element-wise |
| Sinh(TensorFloat) | Computes an output tensor by applying the element-wise |
| Slice<T>(T, ReadOnlySpan<int>, ReadOnlySpan<int>, ReadOnlySpan<int>, ReadOnlySpan<int>) | Calculates an output tensor by slicing the input tensor along given axes with given starts, ends, and steps. |
| Softmax(TensorFloat, int) | Computes an output tensor by applying the |
| Softplus(TensorFloat) | Computes an output tensor by applying the element-wise |
| Softsign(TensorFloat) | Computes an output tensor by applying the element-wise |
| SpaceToDepth(TensorFloat, int) | Computes the output tensor by permuting data from blocks of spatial data into depth. |
| Split<T>(T, int, int, int) | Calculates an output tensor by splitting the input tensor along a given axis between start and end. |
| Sqrt(TensorFloat) | Computes an output tensor by applying the element-wise |
| Square(TensorFloat) | Computes an output tensor by applying the element-wise |
| Sub(float, TensorFloat) | Performs an element-wise |
| Sub(TensorFloat, float) | Performs an element-wise |
| Sub(TensorFloat, TensorFloat) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Sub(TensorInt, TensorInt) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Sum(params TensorFloat[]) | Performs an element-wise This supports numpy-style broadcasting of input tensors. |
| Swish(TensorFloat) | Computes an output tensor by applying the element-wise |
| Tan(TensorFloat) | Computes an output tensor by applying the element-wise |
| Tanh(TensorFloat) | Computes an output tensor by applying the element-wise |
| ThresholdedRelu(TensorFloat, float) | Computes an output tensor by applying the element-wise |
| Tile<T>(T, ReadOnlySpan<int>) | Calculates an output tensor by repeating the input layer a given number of times along each axis. |
| TopK(TensorFloat, int, int, bool, bool) | Calculates the top-K largest or smallest elements of an input tensor along a given axis. |
| Transpose<T>(T) | Calculates an output tensor by reversing the dimensions of the input tensor. |
| Transpose<T>(T, int[]) | Calculates an output tensor by permuting the axes and data of the input tensor according to the given permutations. |
| Tril<T>(T, int) | Computes the output tensor by retaining the lower triangular values from an input matrix or matrix batch and setting the other values to zero. |
| Triu<T>(T, int) | Computes the output tensor by retaining the upper triangular values from an input matrix or matrix batch and setting the other values to zero. |
| Where<T>(TensorInt, T, T) | Performs an element-wise |
| Xor(TensorInt, TensorInt) | Performs an element-wise |