Skip to content

Commit 5c1677d

Browse files
milesialdominicshanshan
authored andcommitted
[https://nvbugs/5467062][fix] pass logitsPostProcessorBatched by reference (NVIDIA#7110)
Signed-off-by: Alexandre Milesi <[email protected]> Signed-off-by: Wangshanshan <[email protected]>
1 parent e73dcaa commit 5c1677d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cpp/include/tensorrt_llm/batch_manager/logitsPostProcessor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class LogitsPostProcessor : Algorithm
4747

4848
bool operator()(DecoderInputBuffers& inputBuffers, bool replicateLogitsPostProcessor,
4949
runtime::WorldConfig const& worldConfig, CudaStreamPtr const& stream,
50-
std::optional<LogitsPostProcessorBatched> logitsPostProcessorBatched = std::nullopt) const;
50+
std::optional<LogitsPostProcessorBatched> const& logitsPostProcessorBatched = std::nullopt) const;
5151
};
5252

5353
} // namespace tensorrt_llm::batch_manager

cpp/tensorrt_llm/batch_manager/logitsPostProcessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ using SizeType32 = tensorrt_llm::runtime::SizeType32;
3434

3535
bool LogitsPostProcessor::operator()(DecoderInputBuffers& inputBuffers, bool replicateLogitsPostProcessor,
3636
tr::WorldConfig const& worldConfig, CudaStreamPtr const& stream,
37-
std::optional<LogitsPostProcessorBatched> logitsPostProcessorBatched) const
37+
std::optional<LogitsPostProcessorBatched> const& logitsPostProcessorBatched) const
3838
{
3939
TLLM_LOG_TRACE("%s start", __PRETTY_FUNCTION__);
4040
NVTX3_SCOPED_RANGE(LogitsPostProcessor);

0 commit comments

Comments
 (0)