diff options
author | Herman Semenov <GermanAizek@yandex.ru> | 2024-05-16 06:14:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-16 16:14:24 +1000 |
commit | 0350f5815218c483fb3026a86adc44a115481625 (patch) | |
tree | 5f8f225a72ff18d597d06cc60f89f62f3cbe159f /llama.cpp | |
parent | ad52d5c259344888b06fd5acd3344c663dd0621d (diff) |
grammar, json, llama: replace push on emplace if it possible (#7273)
Diffstat (limited to 'llama.cpp')
-rw-r--r-- | llama.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17015,13 +17015,13 @@ static size_t llama_state_seq_get_data_internal(struct llama_context * ctx, llam } else { if (cell_range_begin != kv_self.size) { - cell_ranges.push_back({ cell_range_begin, i }); + cell_ranges.emplace_back(cell_range_begin, i); cell_range_begin = kv_self.size; } } } if (cell_range_begin != kv_self.size) { - cell_ranges.push_back({ cell_range_begin, kv_self.size }); + cell_ranges.emplace_back(cell_range_begin, kv_self.size); } // DEBUG CHECK: Sum of cell counts in ranges should equal the total cell count |