Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yinggeh committed Aug 30, 2024
1 parent beab58e commit e63f014
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/infer_request.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1320,6 +1320,8 @@ InferenceRequest::ValidateBytesInputs(
buffer_next_idx++, (const void**)(&buffer), &remaining_buffer_size,
buffer_memory_type, &buffer_memory_id));

// GPU tensors are validated at platform backends to avoid additional
// data copying. Check "ValidateStringBuffer" in backend_common.cc.
if (*buffer_memory_type == TRITONSERVER_MEMORY_GPU) {
return Status::Success;
}
Expand Down

0 comments on commit e63f014

Please sign in to comment.