MCPcopy Create free account
hub / github.com/LBANN/lbann / batch_step_string

Function batch_step_string

src/callbacks/debug.cpp:80–89  ·  view source on GitHub ↗

Get human-readable string describing current batch step. */

Source from the content-addressed store, hash-verified

78
79/** Get human-readable string describing current batch step. */
80std::string batch_step_string(const model& m)
81{
82 const auto& c =
83 dynamic_cast<const SGDExecutionContext&>(m.get_execution_context());
84 std::stringstream msg;
85 const auto& mode = c.get_execution_mode();
86 msg << to_string(mode) << " batch " << c.get_step();
87 msg << " (epoch " << c.get_epoch() << ")";
88 return msg.str();
89}
90
91} // namespace
92

Callers 8

on_batch_beginMethod · 0.85
on_batch_endMethod · 0.85
on_forward_prop_beginMethod · 0.85
on_forward_prop_endMethod · 0.85
on_backward_prop_endMethod · 0.85
on_optimize_beginMethod · 0.85
on_optimize_endMethod · 0.85

Calls 4

get_stepMethod · 0.80
get_epochMethod · 0.80
to_stringFunction · 0.70
get_execution_modeMethod · 0.45

Tested by

no test coverage detected