mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-24 16:32:12 +00:00
(ffi) remove narrowing type warning
This commit is contained in:
parent
fb759bdd2a
commit
0b0c30fe8b
@ -5,7 +5,7 @@
|
||||
#ifndef TGI_TRTLLM_BACKEND_FFI_H
|
||||
#define TGI_TRTLLM_BACKEND_FFI_H
|
||||
|
||||
ad#include <cmath>
|
||||
#include <cmath>
|
||||
#include <cstddef>
|
||||
#include <memory>
|
||||
#include "backend.h"
|
||||
|
@ -48,7 +48,7 @@ huggingface::tgi::backends::ConvertResponseToGenerationStep(const tle::Response
|
||||
const auto result = response.getResult();
|
||||
return std::move(GenerationStep{
|
||||
reqId,
|
||||
result.outputTokenIds[0][0],
|
||||
static_cast<uint32_t>(result.outputTokenIds[0][0]),
|
||||
result.logProbs.value()[0][0],
|
||||
result.isFinal,
|
||||
false,
|
||||
|
Loading…
Reference in New Issue
Block a user