Method IsInf
IsInf(TensorFloat, bool, bool)
Performs an element-wise IsInf
logical operation: f(x) = 1 elementwise if x is +Inf and detectPositive
is true
, or x is -Inf and detectNegative
is true
. Otherwise f(x) = 0.
Declaration
public TensorInt IsInf(TensorFloat X, bool detectNegative, bool detectPositive)
Parameters
Type | Name | Description |
---|---|---|
TensorFloat | X | The input tensor. |
bool | detectNegative | Whether to detect negative infinities in the |
bool | detectPositive | Whether to detect positive infinities in the |
Returns
Type | Description |
---|---|
TensorInt | The computed output tensor. |