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

Method get_current_mini_batch_size

src/utils/dataset.cpp:99–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99int dataset::get_current_mini_batch_size() const
100{
101 if (m_current_mini_batch_idx > (m_num_iterations_per_epoch - 1)) {
102 return 0;
103 }
104 else if (m_current_mini_batch_idx == (m_num_iterations_per_epoch - 1)) {
105 return m_last_mini_batch_size;
106 }
107 else {
108 return m_mini_batch_size;
109 }
110}
111
112int dataset::get_next_position() const
113{

Callers 15

do_check_gradientsMethod · 0.45
print_fp_startMethod · 0.45
assert_tensor_sizeFunction · 0.45
fp_setup_outputsMethod · 0.45
fp_computeMethod · 0.45
bp_computeMethod · 0.45
kfac.cppFile · 0.45
on_forward_prop_endMethod · 0.45
trainMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected