Fix comparison of integers with different signedness.

This commit is contained in:
Tomasz Sobczyk
2020-11-29 17:31:57 +01:00
committed by nodchip
parent a97b65eaef
commit 2aa7f5290e
5 changed files with 7 additions and 7 deletions

View File

@@ -214,7 +214,7 @@ namespace Eval::NNUE {
std::vector<double> gradient_norm_local(thread_pool.size(), 0.0);
auto prev_batch_begin = examples.end();
while (prev_batch_begin - examples.begin() >= batch_size) {
while ((long)(prev_batch_begin - examples.begin()) >= (long)batch_size) {
auto batch_begin = prev_batch_begin - batch_size;
auto batch_end = prev_batch_begin;
auto size = batch_end - batch_begin;