| 58 | struct IsInfOperator { |
| 59 | template <typename OutType, typename InType> |
| 60 | static constexpr OutType Call(KernelContext*, const InType& value, Status*) { |
| 61 | if constexpr (std::is_same_v<InType, Float16>) { |
| 62 | return value.is_infinity(); |
| 63 | } else { |
| 64 | return std::isinf(value); |
| 65 | } |
| 66 | } |
| 67 | }; |
| 68 | |
| 69 | template <typename T> |
nothing calls this directly
no outgoing calls
no test coverage detected