Class IsInf
Represents an element-wise IsInf
logical layer: f(x) = 1 elementwise if x is +Inf and detectPositive, or x is -Inf and detectNegative
is true. Otherwise f(x) = 0.
Inherited Members
Namespace: Unity.Sentis.Layers
Assembly: solution.dll
Syntax
[Serializable]
public class IsInf : Layer
Constructors
Name | Description |
---|---|
IsInf(string, string, bool, bool) | Initializes and returns an instance of |
Fields
Name | Description |
---|---|
detectNegative | Whether to detect negative infinities in the |
detectPositive | Whether to detect positive infinities in the |
Methods
Name | Description |
---|---|
Execute(Tensor[], ExecutionContext) | Executes the layer using the operations and variables from the If the layer has more than one output, output tensors are saved to variables. |
ToString() | Returns a string that represents the |