From e752346ed18d59f2d48c4d302fbf0aad51c37d24 Mon Sep 17 00:00:00 2001 From: fpetrini15 Date: Fri, 29 Dec 2023 17:25:27 -0800 Subject: [PATCH 1/2] New param --- src/identity.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/identity.cc b/src/identity.cc index 8378235..9f5594d 100644 --- a/src/identity.cc +++ b/src/identity.cc @@ -1196,6 +1196,9 @@ TRITONBACKEND_ModelInstanceExecute( LOG_IF_ERROR( TRITONBACKEND_ResponseSetBoolParameter(responses[r], "param2", false), "failed setting boolean parameter"); + LOG_IF_ERROR( + TRITONBACKEND_ResponseSetBoolParameter(responses[r], "param3", 123.123), + "failed setting double parameter"); } uint64_t compute_end_ns = 0; From a9c621c532e617c282efe973f1c5eaaea9833550 Mon Sep 17 00:00:00 2001 From: fpetrini15 Date: Fri, 29 Dec 2023 18:33:36 -0800 Subject: [PATCH 2/2] Use correct API --- src/identity.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/identity.cc b/src/identity.cc index 9f5594d..16a53dd 100644 --- a/src/identity.cc +++ b/src/identity.cc @@ -1197,7 +1197,8 @@ TRITONBACKEND_ModelInstanceExecute( TRITONBACKEND_ResponseSetBoolParameter(responses[r], "param2", false), "failed setting boolean parameter"); LOG_IF_ERROR( - TRITONBACKEND_ResponseSetBoolParameter(responses[r], "param3", 123.123), + TRITONBACKEND_ResponseSetDoubleParameter( + responses[r], "param3", 123.123), "failed setting double parameter"); }