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

Function tolerance_for

tests/test_phase6.cpp:135–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135static float tolerance_for(const std::string & name) {
136 if (name == "sam_dec_block1_queries" ||
137 name == "sam_dec_final_queries") {
138 return 2e-4f;
139 }
140 if (name == "sam_dec_upscaled") {
141 return 9e-4f;
142 }
143 if (name == "sam_dec_masks") {
144 return 8e-3f;
145 }
146 return 1e-4f;
147}
148
149int main(int argc, char ** argv) {
150 if (argc < 5) {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected