fixed trailing whitespaces
This commit is contained in:
parent
87fcdd971c
commit
81f347c19d
1 changed files with 3 additions and 3 deletions
|
@ -3744,17 +3744,17 @@ size_t llama_get_state_size(const struct llama_context * ctx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** copy state data into either a buffer or file depending on the passed in context
|
/** copy state data into either a buffer or file depending on the passed in context
|
||||||
*
|
*
|
||||||
* file context:
|
* file context:
|
||||||
* llama_file file("/path", "wb");
|
* llama_file file("/path", "wb");
|
||||||
* llama_data_file_context data_ctx(&file);
|
* llama_data_file_context data_ctx(&file);
|
||||||
* llama_copy_state_data(ctx, &data_ctx);
|
* llama_copy_state_data(ctx, &data_ctx);
|
||||||
*
|
*
|
||||||
* buffer context:
|
* buffer context:
|
||||||
* std::vector<uint8_t> buf(max_size, 0);
|
* std::vector<uint8_t> buf(max_size, 0);
|
||||||
* llama_data_buffer_context data_ctx(&buf.data());
|
* llama_data_buffer_context data_ctx(&buf.data());
|
||||||
* llama_copy_state_data(ctx, &data_ctx);
|
* llama_copy_state_data(ctx, &data_ctx);
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void llama_copy_state_data(struct llama_context * ctx, llama_data_context * data_ctx) {
|
void llama_copy_state_data(struct llama_context * ctx, llama_data_context * data_ctx) {
|
||||||
// copy rng
|
// copy rng
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue