mirror of
https://github.com/abetlen/llama-cpp-python.git
synced 2023-09-07 17:34:22 +03:00
Fix return type
This commit is contained in:
@@ -260,7 +260,7 @@ _lib.llama_get_state_size.restype = c_size_t
|
||||
# Returns the number of bytes copied
|
||||
def llama_copy_state_data(
|
||||
ctx: llama_context_p, dest # type: Array[c_uint8]
|
||||
) -> c_size_t:
|
||||
) -> int:
|
||||
return _lib.llama_copy_state_data(ctx, dest)
|
||||
|
||||
|
||||
@@ -272,7 +272,7 @@ _lib.llama_copy_state_data.restype = c_size_t
|
||||
# Returns the number of bytes read
|
||||
def llama_set_state_data(
|
||||
ctx: llama_context_p, src # type: Array[c_uint8]
|
||||
) -> c_size_t:
|
||||
) -> int:
|
||||
return _lib.llama_set_state_data(ctx, src)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user