diff --git a/src/parser.c b/src/parser.c index 8f8f5842..a2d13338 100644 --- a/src/parser.c +++ b/src/parser.c @@ -2026,6 +2026,7 @@ void save_weights_upto(network net, char *filename, int cutoff, int save_ema) fwrite(l.biases, sizeof(float), l.outputs, fp); fwrite(l.weights, sizeof(float), size, fp); } + fflush(fp); } fclose(fp); }