Unverified Commit bec25d82 authored by Adrià Arrufat's avatar Adrià Arrufat Committed by GitHub
Browse files

Fix running gradient crashing sometimes (#2401)

parent 16500906
......@@ -1121,7 +1121,7 @@ namespace dlib
}
// if we haven't seen much data yet then just say false.
if (gradient_updates_since_last_sync < 30)
if (previous_loss_values_to_keep_until_disk_sync.size() < 30)
return false;
// if the loss is very likely to be increasing then return true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment