From 9fb2c73bc0592fccf9119106c237f1eb315840f4 Mon Sep 17 00:00:00 2001 From: mike dupont Date: Sat, 25 Nov 2023 09:11:40 -0500 Subject: [PATCH] adding include for refl --- print.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/print.hpp b/print.hpp index d05177efd..043d7f531 100644 --- a/print.hpp +++ b/print.hpp @@ -1,3 +1,4 @@ +#include #include #include "llama.h" #include "ggml-internal.hpp" @@ -6,6 +7,9 @@ REFL_TYPE(ggml_init_params ) REFL_END +// we use the named data type patch +#define ggml_opt_params_names +#ifdef ggml_opt_params_names REFL_TYPE(ggml_opt_params::ggml_adam) REFL_END @@ -15,7 +19,7 @@ REFL_END REFL_TYPE(ggml_opt_context::ggml_grad ) REFL_END - +#endif REFL_TYPE(gpt_params ) REFL_FIELD( seed )