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.
Attributes
- detect_negative (optional): int, indicating whether to map negative infinity to true. The default value is 1, meaning negative infinity is mapped to 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, meaning positive infinity is mapped to 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 input x.
Constraints
None
ONNX Opset Support
Opset v10/v11/v12/v13/v14/v15/v16/v17/v18
Parent topic: Supported ONNX Operators