IsInf
Description
Maps the infinite element of the input tensor to true and other values to false.
Input
x: input tensor of type float32 or double.
Attribute
- detect_negative (optional): int, indicating whether to map negative infinity to true. The default value is 1, indicating that negative infinity induction is true. If negative infinity is mapped to false, set this attribute to 0.
- detect_positive (optional): int, indicating whether to map positive infinity to true. The default value is 1, indicating that positive infinity induction is true. If positive infinity is mapped to false, set this attribute to 0.
Output
y: output tensor of type bool. Its shape is the same as that of the input x.
Constraints
None.
ONNX Opset Support
Opset v10/v11/v12/v13/v14/v15/v16/v17/v18
Parent topic: Supported ONNX Operators