MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / good_float

Function good_float

dnn/test/common/utils.h:308–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306size_t get_cpu_count();
307
308static inline bool good_float(float val) {
309 return std::isfinite(val);
310}
311
312static inline bool good_float(int) {
313 return true;

Callers 2

assert_tensor_binary_eqFunction · 0.70

Calls 1

isfiniteFunction · 0.50

Tested by

no test coverage detected