1111#include < limits>
1212#include < map>
1313#include < stdexcept>
14- #include < iostream>
1514
1615//
1716// llama_kv_cache_unified
@@ -1744,7 +1743,7 @@ bool llama_kv_cache_unified::state_read_data(llama_io_read_i & io, uint32_t cell
17441743llama_kv_cache_unified_context::llama_kv_cache_unified_context (llama_memory_status status) : status(status) {}
17451744
17461745llama_kv_cache_unified_context::llama_kv_cache_unified_context (
1747- llama_kv_cache_unified * kv) : kv(kv ), status(LLAMA_MEMORY_STATUS_SUCCESS ) {
1746+ llama_kv_cache_unified * kv) : status(LLAMA_MEMORY_STATUS_SUCCESS ), kv(kv ) {
17481747 n_kv = kv->get_size ();
17491748 head = 0 ;
17501749}
@@ -1753,7 +1752,7 @@ llama_kv_cache_unified_context::llama_kv_cache_unified_context(
17531752 llama_kv_cache_unified * kv,
17541753 llama_context * lctx,
17551754 bool do_shift,
1756- defrag_info dinfo) : kv(kv ), status(LLAMA_MEMORY_STATUS_SUCCESS ), lctx(lctx), do_shift(do_shift), dinfo(std::move(dinfo)) {
1755+ defrag_info dinfo) : status(LLAMA_MEMORY_STATUS_SUCCESS ), kv(kv ), lctx(lctx), do_shift(do_shift), dinfo(std::move(dinfo)) {
17571756 if (!do_shift && this ->dinfo .empty ()) {
17581757 status = LLAMA_MEMORY_STATUS_NO_UPDATE;
17591758 }
@@ -1762,7 +1761,7 @@ llama_kv_cache_unified_context::llama_kv_cache_unified_context(
17621761llama_kv_cache_unified_context::llama_kv_cache_unified_context (
17631762 llama_kv_cache_unified * kv,
17641763 llama_kv_cache_unified::ubatch_heads heads,
1765- std::vector<llama_ubatch> ubatches) : kv(kv ), status(LLAMA_MEMORY_STATUS_SUCCESS ), heads(std::move(heads)), ubatches(std::move(ubatches)) {
1764+ std::vector<llama_ubatch> ubatches) : status(LLAMA_MEMORY_STATUS_SUCCESS ), kv(kv ), heads(std::move(heads)), ubatches(std::move(ubatches)) {
17661765}
17671766
17681767llama_kv_cache_unified_context::~llama_kv_cache_unified_context () = default ;
0 commit comments