Method IsInf
IsInf(TensorFloat, TensorInt, 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
void IsInf(TensorFloat X, TensorInt O, bool detectNegative, bool detectPositive)
Parameters
Type | Name | Description |
---|---|---|
TensorFloat | X | The input tensor. |
TensorInt | O | The output tensor to be computed and filled. |
bool | detectNegative | Whether to detect negative infinities in the |
bool | detectPositive | Whether to detect positive infinities in the |