Skip to content

Commit 9fb2c73

Browse files
author
mike dupont
committed
adding include for refl
1 parent bf019ef commit 9fb2c73

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

print.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include <refl-cpp/refl.hpp>
12
#include <iostream>
23
#include "llama.h"
34
#include "ggml-internal.hpp"
@@ -6,6 +7,9 @@
67
REFL_TYPE(ggml_init_params )
78
REFL_END
89

10+
// we use the named data type patch
11+
#define ggml_opt_params_names
12+
#ifdef ggml_opt_params_names
913
REFL_TYPE(ggml_opt_params::ggml_adam)
1014
REFL_END
1115

@@ -15,7 +19,7 @@ REFL_END
1519

1620
REFL_TYPE(ggml_opt_context::ggml_grad )
1721
REFL_END
18-
22+
#endif
1923
REFL_TYPE(gpt_params )
2024

2125
REFL_FIELD( seed )

0 commit comments

Comments
 (0)