Skip to content

Commit 7f0e9a7

Browse files
authored
embd-input: Fix input embedding example unsigned int seed (#2105)
1 parent b472f3f commit 7f0e9a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/embd-input/embd-input-lib.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct MyModel* create_mymodel(int argc, char ** argv) {
2929

3030
fprintf(stderr, "%s: build = %d (%s)\n", __func__, BUILD_NUMBER, BUILD_COMMIT);
3131

32-
if (params.seed < 0) {
32+
if (params.seed == LLAMA_DEFAULT_SEED) {
3333
params.seed = time(NULL);
3434
}
3535
fprintf(stderr, "%s: seed = %d\n", __func__, params.seed);

0 commit comments

Comments
 (0)