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

Function good_float

src/core/impl/utils/debug.cpp:318–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316namespace {
317
318bool good_float(float val) {
319 return std::isfinite(val);
320}
321
322bool good_float(int) {
323 return true;

Callers 2

num2strFunction · 0.70
do_compare_tensor_valueFunction · 0.70

Calls 1

isfiniteFunction · 0.50

Tested by

no test coverage detected