summaryrefslogtreecommitdiff
path: root/tests/test-opt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-opt.cpp')
-rw-r--r--tests/test-opt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-opt.cpp b/tests/test-opt.cpp
index 2c9997fc..546ca230 100644
--- a/tests/test-opt.cpp
+++ b/tests/test-opt.cpp
@@ -118,7 +118,7 @@ int main(void) {
const float fe = ggml_get_f32_1d(e, 0);
printf("%s: e = %.4f\n", __func__, fe);
- struct ggml_opt_params opt_params = ggml_opt_default_params(GGML_OPT_ADAM);
+ struct ggml_opt_params opt_params = ggml_opt_default_params(GGML_OPT_TYPE_ADAM);
ggml_opt(ctx, opt_params, e);