From 1ea48a6f7c3d4c27ceacc0ad1acdbe2002a0476c Mon Sep 17 00:00:00 2001 From: Jacky <18255193+kthui@users.noreply.github.com> Date: Fri, 24 Jan 2025 16:20:45 -0800 Subject: [PATCH 01/13] feat: Add parameters support to InferResponse (#394) * Add parameters support to InferResponse * Infer response to track parameters * Add parameters to binding infer response * Rank parameters argument up among InferResponse constructor arguments * Add setting parameters to Triton response * Send response parameters only on non-error * Fix double declaration * Unify py dictionary parameters to json str * Add documentation * Mark response parameters accessor const and JSON serializable * [Docs] Note BLS response parameters are not populated currently * [comment] Clarify why PbTensor::LoadFromSharedMemory() requires holding GIL --- README.md | 21 ++++++- src/infer_response.cc | 78 ++++++++++++++++++++---- src/infer_response.h | 13 ++-- src/pb_stub.cc | 131 ++++++++++++++++++++++------------------ src/request_executor.cc | 20 +++--- 5 files changed, 180 insertions(+), 83 deletions(-) diff --git a/README.md b/README.md index ffcef26c..a6242a44 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@