@@ -1041,6 +1041,9 @@ class llama_kv_cache_view(Structure):
1041
1041
]
1042
1042
1043
1043
1044
+ llama_kv_cache_view_p = POINTER (llama_kv_cache_view )
1045
+
1046
+
1044
1047
# // Create an empty KV cache view. (use only for debugging purposes)
1045
1048
# LLAMA_API struct llama_kv_cache_view llama_kv_cache_view_init(const struct llama_context * ctx, int32_t n_max_seq);
1046
1049
def llama_kv_cache_view_init (
@@ -1056,23 +1059,23 @@ def llama_kv_cache_view_init(
1056
1059
1057
1060
# // Free a KV cache view. (use only for debugging purposes)
1058
1061
# LLAMA_API void llama_kv_cache_view_free(struct llama_kv_cache_view * view);
1059
- def llama_kv_cache_view_free (view : llama_kv_cache_view ):
1062
+ def llama_kv_cache_view_free (view : llama_kv_cache_view_p ):
1060
1063
"""Free a KV cache view. (use only for debugging purposes)"""
1061
1064
return _lib .llama_kv_cache_view_free (view )
1062
1065
1063
1066
1064
- _lib .llama_kv_cache_view_free .argtypes = [llama_kv_cache_view ]
1067
+ _lib .llama_kv_cache_view_free .argtypes = [llama_kv_cache_view_p ]
1065
1068
_lib .llama_kv_cache_view_free .restype = None
1066
1069
1067
1070
1068
1071
# // Update the KV cache view structure with the current state of the KV cache. (use only for debugging purposes)
1069
1072
# LLAMA_API void llama_kv_cache_view_update(const struct llama_context * ctx, struct llama_kv_cache_view * view);
1070
- def llama_kv_cache_view_update (ctx : llama_context_p , view : llama_kv_cache_view ):
1073
+ def llama_kv_cache_view_update (ctx : llama_context_p , view : llama_kv_cache_view_p ):
1071
1074
"""Update the KV cache view structure with the current state of the KV cache. (use only for debugging purposes)"""
1072
1075
return _lib .llama_kv_cache_view_update (ctx , view )
1073
1076
1074
1077
1075
- _lib .llama_kv_cache_view_update .argtypes = [llama_context_p , llama_kv_cache_view ]
1078
+ _lib .llama_kv_cache_view_update .argtypes = [llama_context_p , llama_kv_cache_view_p ]
1076
1079
_lib .llama_kv_cache_view_update .restype = None
1077
1080
1078
1081
0 commit comments