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

Method get_num_samples

src/data_coordinator/data_coordinator.cpp:451–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449}
450
451long data_coordinator::get_num_samples(execution_mode m) const
452{
453 if (m_datasets.count(m) && m_datasets.at(m).initialized()) {
454 return m_datasets.at(m).get_num_samples_processed();
455 }
456 else {
457 LBANN_WARNING(
458 "I am getting the number of smaples and it is defaulting to 0");
459 return 0;
460 }
461}
462
463long data_coordinator::get_total_num_samples(execution_mode m) const
464{

Callers 6

on_epoch_endMethod · 0.45
on_test_endMethod · 0.45
get_mean_valueMethod · 0.45
get_mean_valueMethod · 0.45

Calls 3

countMethod · 0.80
initializedMethod · 0.80

Tested by

no test coverage detected