1111#include < limits>
1212#include < map>
1313#include < stdexcept>
14- #include < iostream>
1514
1615//
1716// llama_kv_cache_unified
@@ -1770,7 +1769,7 @@ bool llama_kv_cache_unified::state_read_data(llama_io_read_i & io, uint32_t cell
17701769llama_kv_cache_unified_context::llama_kv_cache_unified_context (llama_memory_status status) : status(status) {}
17711770
17721771llama_kv_cache_unified_context::llama_kv_cache_unified_context (
1773- llama_kv_cache_unified * kv) : kv(kv ), status(LLAMA_MEMORY_STATUS_SUCCESS ) {
1772+ llama_kv_cache_unified * kv) : status(LLAMA_MEMORY_STATUS_SUCCESS ), kv(kv ) {
17741773 n_kv = kv->get_size ();
17751774 head = 0 ;
17761775}
@@ -1779,7 +1778,7 @@ llama_kv_cache_unified_context::llama_kv_cache_unified_context(
17791778 llama_kv_cache_unified * kv,
17801779 llama_context * lctx,
17811780 bool do_shift,
1782- defrag_info dinfo) : kv(kv ), status(LLAMA_MEMORY_STATUS_SUCCESS ), lctx(lctx), do_shift(do_shift), dinfo(std::move(dinfo)) {
1781+ defrag_info dinfo) : status(LLAMA_MEMORY_STATUS_SUCCESS ), kv(kv ), lctx(lctx), do_shift(do_shift), dinfo(std::move(dinfo)) {
17831782 if (!do_shift && this ->dinfo .empty ()) {
17841783 status = LLAMA_MEMORY_STATUS_NO_UPDATE;
17851784 }
@@ -1788,7 +1787,7 @@ llama_kv_cache_unified_context::llama_kv_cache_unified_context(
17881787llama_kv_cache_unified_context::llama_kv_cache_unified_context (
17891788 llama_kv_cache_unified * kv,
17901789 llama_kv_cache_unified::ubatch_heads heads,
1791- std::vector<llama_ubatch> ubatches) : kv(kv ), status(LLAMA_MEMORY_STATUS_SUCCESS ), heads(std::move(heads)), ubatches(std::move(ubatches)) {
1790+ std::vector<llama_ubatch> ubatches) : status(LLAMA_MEMORY_STATUS_SUCCESS ), kv(kv ), heads(std::move(heads)), ubatches(std::move(ubatches)) {
17921791}
17931792
17941793llama_kv_cache_unified_context::~llama_kv_cache_unified_context () = default ;
0 commit comments