MCPcopy Create free account
hub / github.com/Niko1221/Strata / equal

Function equal

engine/src/kernels/cpu/native_arithmetic_parity.cpp:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16constexpr int width = 8, hidden = 512;
17size_t checked = 0;
18bool equal(const std::vector<float> &actual, const std::vector<float> &expected) {
19 for (size_t i = 0; i < actual.size(); ++i) {
20 ++checked;
21 if (!std::isfinite(actual[i]) || std::memcmp(&actual[i], &expected[i], sizeof(float)))
22 return false;
23 }
24 return true;
25}
26
27bool check_format(int gu, int down, int ff, bool folded = false) {
28 cpu::NativeFmt fmt;

Callers 8

check_formatFunction · 0.70
mainFunction · 0.70
runFunction · 0.50
mainFunction · 0.50
check_topkFunction · 0.50
run_caseFunction · 0.50
mainFunction · 0.50
checkFunction · 0.50

Calls 1

sizeMethod · 0.45

Tested by 1

mainFunction · 0.56