| 47 | struct IsFiniteOperator { |
| 48 | template <typename OutType, typename InType> |
| 49 | static constexpr OutType Call(KernelContext*, const InType& value, Status*) { |
| 50 | if constexpr (std::is_same_v<InType, Float16>) { |
| 51 | return value.is_finite(); |
| 52 | } else { |
| 53 | return std::isfinite(value); |
| 54 | } |
| 55 | } |
| 56 | }; |
| 57 | |
| 58 | struct IsInfOperator { |
nothing calls this directly
no outgoing calls
no test coverage detected