| 127 | } |
| 128 | |
| 129 | XlaOp IsNan(XlaOp operand) { |
| 130 | auto& b = *operand.builder(); |
| 131 | return b.ReportErrorOrReturn([&]() -> StatusOr<XlaOp> { |
| 132 | TF_RETURN_IF_ERROR(EnsureOperandIsRealFp("IsNan", operand)); |
| 133 | return Ne(operand, operand); |
| 134 | }); |
| 135 | } |
| 136 | |
| 137 | XlaOp IsNegZero(XlaOp operand) { |
| 138 | auto& b = *operand.builder(); |