MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / IsFinite

Function IsFinite

tensorflow/compiler/xla/service/hlo_parser.cc:2545–2547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2543// To work around that we will need to provide our own.
2544template <typename T>
2545std::enable_if_t<std::is_floating_point<T>::value, bool> IsFinite(T val) {
2546 return std::isfinite(val);
2547}
2548template <typename T>
2549std::enable_if_t<std::is_floating_point<T>::value, bool> IsNaN(T val) {
2550 return std::isnan(val);

Callers 1

Calls 1

isfiniteClass · 0.85

Tested by

no test coverage detected