Fix assertion in trainer

This commit is contained in:
Tomasz Sobczyk
2020-10-22 15:39:43 +02:00
committed by nodchip
parent 9564a52523
commit f7530de20d

View File

@@ -38,7 +38,7 @@ namespace Eval::NNUE {
TrainingFeature& operator+=(const TrainingFeature& other) {
assert(other.get_index() == get_index());
assert(other.get_index() + get_count() < (1 << kCountBits));
assert(other.get_count() + get_count() < (1 << kCountBits));
index_and_count_ += other.get_count();
return *this;
}