shithub: util

Download patch

ref: 8027983841965d3dd3ea21c224db7271656cbc8e
parent: c22a7780da3799b1cc751260e772d26d20472479
author: eli <eli@singularity>
date: Sun Mar 23 01:17:42 EDT 2025

don't save ann unless in training mode

--- a/ann/main.c
+++ b/ann/main.c
@@ -159,7 +159,7 @@
 		}
 	} while(line != nil);
 
-	if (annsave(filename, ann) != 0)
+	if (train == 1 && annsave(filename, ann) != 0)
 		exits("save");
 
 	exits(nil);