]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llama : fix struct decl (#2790)
authorMarcus Dunn <redacted>
Fri, 25 Aug 2023 16:17:15 +0000 (09:17 -0700)
committerGitHub <redacted>
Fri, 25 Aug 2023 16:17:15 +0000 (19:17 +0300)
llama.h

diff --git a/llama.h b/llama.h
index 86737200fe3497e1ddb78ad45e6a313e95482867..b77dd7735fdf094592a6fbf3e0131295508699ce 100644 (file)
--- a/llama.h
+++ b/llama.h
@@ -485,7 +485,7 @@ extern "C" {
     // (e.g. beams[0]) as they will be removed (shifted) from all beams in all subsequent callbacks.
     // These pointers are valid only during the synchronous callback, so should not be saved.
     struct llama_beams_state {
-        llama_beam_view * beam_views;
+        struct llama_beam_view * beam_views;
         size_t n_beams;               // Number of elements in beam_views[].
         size_t common_prefix_length;  // Current max length of prefix tokens shared by all beams.
         bool last_call;               // True iff this is the last callback invocation.