| 134 | } |
| 135 | |
| 136 | static void update_summary(summary_row & row, |
| 137 | const std::string & tensor_name, |
| 138 | const compare_result & r, |
| 139 | bool ok) { |
| 140 | if (!row.measured || r.max_diff >= row.max_diff) { |
| 141 | row.max_diff = r.max_diff; |
| 142 | row.mean_diff = r.mean_diff; |
| 143 | row.cosine_sim = r.cosine_sim; |
| 144 | row.worst_tensor = tensor_name; |
| 145 | } |
| 146 | row.measured = true; |
| 147 | row.ok = row.ok && ok; |
| 148 | } |
| 149 | |
| 150 | int main(int argc, char ** argv) { |
| 151 | if (argc < 4) { |