Skip to content

Commit

Permalink
NPUW: Eliminate unnecessary kvcache tensors copy
Browse files Browse the repository at this point in the history
  • Loading branch information
dmatveev committed Oct 31, 2024
1 parent e44ea54 commit 7c97bc4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ void ov::npuw::JustInferRequest::bind_global_parameters(std::size_t idx) {
LOG_BLOCK();
if (!is_spatial_param(sub_in_idx)) {
// Input parameter is non-spatial, do normal handling
if (do_copy || m_input_allocated.count(g_tnsr->data()) == 0) {
if (m_input_allocated.count(g_tnsr->data()) == 0 && do_copy) {
LOG_DEBUG("Will be copied");
copy_list.emplace_back(g_tnsr, s_port);
} else {
Expand Down

0 comments on commit 7c97bc4

Please sign in to comment.