From ea004a89ec7fdbc305e8e9f4da7f5f75e7ee50f8 Mon Sep 17 00:00:00 2001 From: Yingge He <157551214+yinggeh@users.noreply.github.com> Date: Thu, 25 Jul 2024 17:12:04 -0700 Subject: [PATCH] Update backend_common.h --- include/triton/backend/backend_common.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/include/triton/backend/backend_common.h b/include/triton/backend/backend_common.h index 8fafe83..653f8fa 100644 --- a/include/triton/backend/backend_common.h +++ b/include/triton/backend/backend_common.h @@ -672,14 +672,18 @@ TRITONSERVER_Error* BufferAsTypedString( /// \return a formatted string for logging the request ID. std::string GetRequestId(TRITONBACKEND_Request* request); -/// Validate the contiguous string buffer with correct format and parse string elements into list of pairs of memory address and length. Note the returned list of pairs points to valid memory as long as memory pointed by buffer remains allocated. -/// .... -/// @param buffer The pointer to the contiguous string buffer. -/// @param buffer_byte_size The size of the buffer in bytes. -/// @param expected_element_cnt The number of expected string elements. -/// @param input_name The name of the input buffer. -/// @param str_list Returns pairs of address and length of parsed strings. -/// @return a TRITONSERVER_Error indicating success or failure. +/// Validate the contiguous string buffer with correct format +/// ... and parse string +/// elements into list of pairs of memory address and length. +/// Note the returned list of pairs points to valid memory as long +/// as memory pointed by buffer remains allocated. +/// +/// \param buffer The pointer to the contiguous string buffer. +/// \param buffer_byte_size The size of the buffer in bytes. +/// \param expected_element_cnt The number of expected string elements. +/// \param input_name The name of the input buffer. +/// \param str_list Returns pairs of address and length of parsed strings. +/// \return a TRITONSERVER_Error indicating success or failure. TRITONSERVER_Error* ValidateStringBuffer( const char* buffer, size_t buffer_byte_size, const size_t expected_element_cnt, const char* input_name,