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

Function assert_lt

dnn/test/fallback/gi.cpp:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49static void assert_lt(
50 float* a, const std::vector<float>& b, const float eps,
51 const size_t simd_len = SIMD_LEN) {
52 for (size_t i = 0; i < simd_len; i++) {
53 ASSERT_LT(std::abs(a[i] - b[i]), eps);
54 }
55}
56
57static void force_memset_ret(void* dst, const size_t len) {
58 memset(dst, 'f', len);

Callers 1

TEST_FFunction · 0.85

Calls 1

absFunction · 0.50

Tested by

no test coverage detected