| 62 | /** Get human-readable string describing weights and optimizer. */ |
| 63 | template <typename TensorDataType> |
| 64 | std::string weights_string(const data_type_weights<TensorDataType>& w) |
| 65 | { |
| 66 | std::stringstream msg; |
| 67 | msg << "weights \"" << w.get_name() << "\" ("; |
| 68 | const auto* opt = w.get_optimizer(); |
| 69 | if (opt == nullptr) { |
| 70 | msg << "no"; |
| 71 | } |
| 72 | else { |
| 73 | msg << opt->get_type(); |
| 74 | } |
| 75 | msg << " optimizer)"; |
| 76 | return msg.str(); |
| 77 | } |
| 78 | |
| 79 | /** Get human-readable string describing current batch step. */ |
| 80 | std::string batch_step_string(const model& m) |
no test coverage detected