error on seed=0

This commit is contained in:
Andrej Karpathy
2023-08-06 07:31:21 +00:00
parent 8931d5092e
commit 65b0846637
+1
View File
@@ -536,6 +536,7 @@ int main(int argc, char *argv[]) {
else if (argv[i][1] == 'i') { prompt = argv[i + 1]; }
else { error_usage(); }
}
if(rng_seed == 0) { printf("Cannot use seed=0 because of the rng alg used\n"); return 1; }
// read in the model.bin file
Config config;