MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / compare_result

Class compare_result

tests/test_phase3.cpp:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69struct compare_result {
70 float max_diff = 0.0f;
71 float mean_diff = 0.0f;
72 double cosine_sim = 0.0;
73 int n_elements = 0;
74 int n_bad = 0; // elements exceeding tolerance
75};
76
77static compare_result compare_tensors(const float * a, const float * b, int n,
78 float atol = 1e-4f) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected