From 42ccf4e77cbbb29a4824c6b1409137712fc08cc8 Mon Sep 17 00:00:00 2001 From: Morgan Funtowicz Date: Mon, 26 Aug 2024 13:38:49 +0000 Subject: [PATCH] (misc) no need to move for uint32_t items --- backends/trtllm/src/ffi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/trtllm/src/ffi.cpp b/backends/trtllm/src/ffi.cpp index 872ecb5c9..54c17bc41 100644 --- a/backends/trtllm/src/ffi.cpp +++ b/backends/trtllm/src/ffi.cpp @@ -28,7 +28,7 @@ uint64_t huggingface::tgi::backends::TensorRtLlmBackendImpl::Submit( float_t repetition_penalty, float_t frequency_penalty, uint64_t seed) { // This will copy all the items from the initial slice - std::vector tokens_(std::move_iterator(tokens.begin()), std::move_iterator(tokens.end())); + std::vector tokens_(tokens.begin(), tokens.end()); return TensorRtLlmBackend::Submit( std::move(tokens_), maxNewTokens, topK, topP, temperature, repetition_penalty, frequency_penalty, seed); }