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

Method do_model_optimize_begin_cbs

src/models/model.cpp:1857–1864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1855}
1856
1857void model::do_model_optimize_begin_cbs()
1858{
1859 for (const auto& cb : m_callbacks) {
1860 if (get_execution_context().get_step() % cb->get_batch_interval() == 0) {
1861 cb->on_optimize_begin(this);
1862 }
1863 }
1864}
1865
1866void model::do_model_optimize_end_cbs()
1867{

Callers

nothing calls this directly

Calls 3

get_stepMethod · 0.80
get_batch_intervalMethod · 0.80
on_optimize_beginMethod · 0.45

Tested by

no test coverage detected