Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
306
size_t get_cpu_count();
307
308
static inline bool good_float(float val) {
309
return std::isfinite(val);
310
}
311
312
static inline bool good_float(int) {
313
return true;
Callers
2
assert_tensor_eq_with_iter
Function · 0.70
assert_tensor_binary_eq
Function · 0.70
Calls
1
isfinite
Function · 0.50
Tested by
no test coverage detected