IsInf¶
IsInf - 20¶
Version¶
name: IsInf (GitHub)
domain:
mainsince_version:
20function:
Falsesupport_level:
SupportType.COMMONshape inference:
True
This version of the operator has been available since version 20.
Summary¶
Map infinity to true and other values to false.
Attributes¶
detect_negative - INT (default is
'1'):(Optional) Whether map negative infinity to true. Default to 1 so that negative infinity induces true. Set this attribute to 0 if negative infinity should be mapped to false.
detect_positive - INT (default is
'1'):(Optional) Whether map positive infinity to true. Default to 1 so that positive infinity induces true. Set this attribute to 0 if positive infinity should be mapped to false.
Inputs¶
X (heterogeneous) - T1:
input
Outputs¶
Y (heterogeneous) - T2:
output
Type Constraints¶
T1 in (
tensor(bfloat16),tensor(double),tensor(float),tensor(float16),tensor(float8e4m3fn),tensor(float8e4m3fnuz),tensor(float8e5m2),tensor(float8e5m2fnuz)):Constrain input types to float tensors.
T2 in (
tensor(bool)):Constrain output types to boolean tensors.
IsInf - 10¶
Version¶
name: IsInf (GitHub)
domain:
mainsince_version:
10function:
Falsesupport_level:
SupportType.COMMONshape inference:
True
This version of the operator has been available since version 10.
Summary¶
Map infinity to true and other values to false.
Attributes¶
detect_negative - INT (default is
'1'):(Optional) Whether map negative infinity to true. Default to 1 so that negative infinity induces true. Set this attribute to 0 if negative infinity should be mapped to false.
detect_positive - INT (default is
'1'):(Optional) Whether map positive infinity to true. Default to 1 so that positive infinity induces true. Set this attribute to 0 if positive infinity should be mapped to false.
Inputs¶
X (heterogeneous) - T1:
input
Outputs¶
Y (heterogeneous) - T2:
output
Type Constraints¶
T1 in (
tensor(double),tensor(float)):Constrain input types to float tensors.
T2 in (
tensor(bool)):Constrain output types to boolean tensors.