IsInf

Description

Maps infinity to true and other values to false.

Input

One input

x: tensor of type float32 or double.

Output

One output

y: tensor of type bool.

Attribute

detect_negative : int (default is 1)

(Optional) 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 : int (default is 1)

(Optional) 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.

ONNX Opset Support

Opset v10/v11/v12/v13/v14/v15/v16/v17/v18