embd-input: Fix input embedding example unsigned int seed (#2105)

This commit is contained in:
Nigel Bosch 2023-07-04 18:33:33 -05:00 committed by GitHub
parent b472f3fca5
commit 7f0e9a775e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ struct MyModel* create_mymodel(int argc, char ** argv) {
fprintf(stderr, "%s: build = %d (%s)\n", __func__, BUILD_NUMBER, BUILD_COMMIT);
if (params.seed < 0) {
if (params.seed == LLAMA_DEFAULT_SEED) {
params.seed = time(NULL);
}
fprintf(stderr, "%s: seed = %d\n", __func__, params.seed);