Reduce the amount of sfens buffered for the validation step.

Used to be 10M, now we bound it by a multiple of validation_count, and at most 1M. This reduces the RAM usage greatly.
This commit is contained in:
Tomasz Sobczyk
2020-12-25 00:17:35 +09:00
committed by nodchip
parent 7636bcccd1
commit 4f6fdca31f
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -576,7 +576,7 @@ namespace Learner
SfenReaderMode::Cyclic,
1,
std::to_string(prng.next_random_seed()),
prm.sfen_read_size,
std::min<size_t>(prm.validation_count * 10, 1000000),
prm.thread_buffer_size),
learn_loss_sum{}
{