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

Method set_execution_mode_split_fraction

src/data_readers/data_reader.cpp:793–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

791}
792
793void generic_data_reader::set_execution_mode_split_fraction(execution_mode m,
794 double s)
795{
796 if (s < 0 or s > 1.0) {
797 throw lbann_exception(std::string{} + __FILE__ + " " +
798 std::to_string(__LINE__) +
799 " :: set_validation_fraction() - must be: s >= 0, s "
800 "<= 1.0; you passed: " +
801 std::to_string(s));
802 }
803 m_execution_mode_split_fraction[m] = s;
804}
805
806double
807generic_data_reader::get_execution_mode_split_fraction(execution_mode m) const

Callers 1

init_data_readersFunction · 0.45

Calls 2

lbann_exceptionClass · 0.85
to_stringFunction · 0.70

Tested by

no test coverage detected