Skip to content

Commit

Permalink
Sequence batcher no longer pads string corrids
Browse files Browse the repository at this point in the history
  • Loading branch information
CGranger-sorenson committed Mar 27, 2024
1 parent 434e503 commit cf6be69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sequence_batch_scheduler/sequence_batch_scheduler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,9 @@ SequenceBatch::SetControlTensors(
if (seq_corr_id->DType() == inference::DataType::TYPE_STRING) {
// 4 bytes for length of string plus pre-defined max string correlation id
// length in bytes
size_p = 4 + triton::core::STRING_CORRELATION_ID_MAX_LENGTH_BYTES;
std::string correlation_id = corrid.StringValue();
uint32_t correlation_id_length = correlation_id.length();
size_p = 4 + correlation_id_length;
}

TRITONSERVER_MemoryType memory_type;
Expand Down

0 comments on commit cf6be69

Please sign in to comment.