mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 07:27:46 +00:00
Fix assertion in trainer
This commit is contained in:
@@ -38,7 +38,7 @@ namespace Eval::NNUE {
|
|||||||
|
|
||||||
TrainingFeature& operator+=(const TrainingFeature& other) {
|
TrainingFeature& operator+=(const TrainingFeature& other) {
|
||||||
assert(other.get_index() == get_index());
|
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();
|
index_and_count_ += other.get_count();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user