cleanup style

This commit is contained in:
Jan Boon 2024-03-30 23:39:53 +08:00
parent d38eef468f
commit ea717f773e

View file

@ -15211,7 +15211,7 @@ size_t llama_state_seq_get_data(struct llama_context * ctx, uint8_t * dst, llama
const size_t range_size = range.second - range.first;
tmp_buf.resize(range_size * k_size_row);
ggml_backend_tensor_get(kv_self.k_l[il], tmp_buf.data(), range.first * k_size_row, range_size * k_size_row);
data_ctx.write(&tmp_buf[0], tmp_buf.size());
data_ctx.write(tmp_buf.data(), tmp_buf.size());
}
}
@ -15230,7 +15230,7 @@ size_t llama_state_seq_get_data(struct llama_context * ctx, uint8_t * dst, llama
const size_t src_offset = (range.first + j * kv_size) * v_size_el;
tmp_buf.resize(range_size * v_size_el);
ggml_backend_tensor_get(kv_self.v_l[il], tmp_buf.data(), src_offset, tmp_buf.size());
data_ctx.write(&tmp_buf[0], tmp_buf.size());
data_ctx.write(tmp_buf.data(), tmp_buf.size());
}
}
}