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

Method on_batch_begin

src/callbacks/debug.cpp:111–120  ·  view source on GitHub ↗

Status updates for batch beginnings/endings

Source from the content-addressed store, hash-verified

109
110// Status updates for batch beginnings/endings
111void debug::on_batch_begin(model* m)
112{
113 const auto& c = m->get_execution_context();
114 if (m_modes.empty() || m_modes.count(c.get_execution_mode()) > 0) {
115 std::stringstream msg;
116 msg << rank_string(*m->get_comm()) << ": "
117 << "starting " << batch_step_string(*m) << std::endl;
118 std::cerr << msg.str();
119 }
120}
121void debug::on_batch_end(model* m)
122{
123 const auto& c = m->get_execution_context();

Callers

nothing calls this directly

Calls 6

rank_stringFunction · 0.85
batch_step_stringFunction · 0.85
countMethod · 0.80
emptyMethod · 0.45
get_execution_modeMethod · 0.45
get_commMethod · 0.45

Tested by

no test coverage detected