Skip to content

Commit

Permalink
CB: fix deadlock (#948)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrei Kochin <[email protected]>
  • Loading branch information
Wovchena and andrei-kochin authored Oct 12, 2024
1 parent 82d6697 commit e5ec1cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/src/continuous_batching_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ ContinuousBatchingPipeline::ContinuousBatchingImpl::generate(const std::vector<o
bool continue_generation = true;
while (has_non_finished_requests() && continue_generation) {
step();
if (streamer_ptr) {
if (streamer_ptr && generations.at(0)->can_read()) {
std::unordered_map<uint64_t, GenerationOutput> token = generations.at(0).get()->back();
OPENVINO_ASSERT(1 == token.size());
OPENVINO_ASSERT(1 == token.begin()->second.generated_ids.size());
Expand Down

0 comments on commit e5ec1cc

Please sign in to comment.