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

Method get_next_mini_batch_size

src/utils/dataset.cpp:86–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86int dataset::get_next_mini_batch_size() const
87{
88 if (m_current_mini_batch_idx + 1 > (m_num_iterations_per_epoch - 1)) {
89 return 0;
90 }
91 else if (m_current_mini_batch_idx + 1 == (m_num_iterations_per_epoch - 1)) {
92 return m_last_mini_batch_size;
93 }
94 else {
95 return m_mini_batch_size;
96 }
97}
98
99int dataset::get_current_mini_batch_size() const
100{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected