mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2024-11-09 23:29:44 +00:00
embd-input: Fix input embedding example unsigned int seed (#2105)
This commit is contained in:
parent
b472f3fca5
commit
7f0e9a775e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue