| 791 | } |
| 792 | |
| 793 | void 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 | |
| 806 | double |
| 807 | generic_data_reader::get_execution_mode_split_fraction(execution_mode m) const |
no test coverage detected