From b41875c139c1cec598e25740ca0693f3d6385e36 Mon Sep 17 00:00:00 2001 From: Morgan Funtowicz Date: Mon, 26 Aug 2024 08:24:38 +0000 Subject: [PATCH] (misc) simplify [make_]move_iterator by using c++20 type inference --- 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 35b0a48f..872ecb5c 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::make_move_iterator(tokens.begin()), std::make_move_iterator(tokens.end())); + std::vector tokens_(std::move_iterator(tokens.begin()), std::move_iterator(tokens.end())); return TensorRtLlmBackend::Submit( std::move(tokens_), maxNewTokens, topK, topP, temperature, repetition_penalty, frequency_penalty, seed); }