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

Method add_callback

src/models/model.cpp:547–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547void model::add_callback(std::shared_ptr<callback_base> cb)
548{
549 if (cb == nullptr) {
550 LBANN_ERROR("attempted to add a null pointer as callback to ",
551 "model \"",
552 get_name(),
553 "\"");
554 }
555 m_callbacks.emplace_back(std::move(cb));
556}
557
558void model::add_metric(std::unique_ptr<metric> m)
559{

Callers 4

construct_trainerFunction · 0.45
construct_modelFunction · 0.45
write_protoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected