initialize opt->loss_after with zero
This commit is contained in:
parent
3b9d97484c
commit
5ce74ee461
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ struct train_state * init_train_state() {
|
|||
state->opt = new struct ggml_opt_context;
|
||||
state->opt->ctx = NULL;
|
||||
state->opt->params = ggml_opt_default_params(GGML_OPT_ADAM);
|
||||
state->opt->loss_after = 0.0f;
|
||||
|
||||
return state;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue