Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b703aad

Browse filesBrowse files
committed
Fix type annotation
1 parent d0aedfc commit b703aad
Copy full SHA for b703aad

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎llama_cpp/llama_cpp.py

Copy file name to clipboardExpand all lines: llama_cpp/llama_cpp.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ def llama_kv_cache_view_free(view: "ctypes._Pointer[llama_kv_cache_view]"): # ty
10701070

10711071
# // Update the KV cache view structure with the current state of the KV cache. (use only for debugging purposes)
10721072
# LLAMA_API void llama_kv_cache_view_update(const struct llama_context * ctx, struct llama_kv_cache_view * view);
1073-
def llama_kv_cache_view_update(ctx: llama_context_p, view: llama_kv_cache_view_p):
1073+
def llama_kv_cache_view_update(ctx: llama_context_p, view: "ctypes._Pointer[llama_kv_cache_view]"): # type: ignore
10741074
"""Update the KV cache view structure with the current state of the KV cache. (use only for debugging purposes)"""
10751075
return _lib.llama_kv_cache_view_update(ctx, view)
10761076

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.