| 133 | } |
| 134 | |
| 135 | static 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 | |
| 149 | int main(int argc, char ** argv) { |
| 150 | if (argc < 5) { |