Status updates for optimization step
| 187 | |
| 188 | // Status updates for optimization step |
| 189 | void debug::on_optimize_begin(model* m, weights* w) |
| 190 | { |
| 191 | auto& dtw = dynamic_cast<data_type_weights<DataType>&>(*w); |
| 192 | std::stringstream msg; |
| 193 | msg << rank_string(*m->get_comm()) << ": " << weights_string(dtw) |
| 194 | << " is starting optimization step for " << batch_step_string(*m) |
| 195 | << std::endl; |
| 196 | std::cerr << msg.str(); |
| 197 | } |
| 198 | void debug::on_optimize_end(model* m, weights* w) |
| 199 | { |
| 200 | auto& dtw = dynamic_cast<data_type_weights<DataType>&>(*w); |
no test coverage detected