File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ InferResponseComplete(
147147 uint32_t parameter_count;
148148 THROW_IF_TRITON_ERROR (TRITONSERVER_InferenceResponseParameterCount (
149149 response, ¶meter_count));
150+
150151 for (size_t i = 0 ; i < parameter_count; i++) {
151152 const char * name;
152153 TRITONSERVER_ParameterType type;
@@ -162,15 +163,13 @@ InferResponseComplete(
162163 } else if (type == TRITONSERVER_PARAMETER_STRING) {
163164 std::string string = reinterpret_cast <const char *>(vvalue);
164165 THROW_IF_TRITON_ERROR (parameters_json.AddString (name, string));
165- } else if (type == TRITONSERVER_PARAMETER_DOUBLE) {
166- THROW_IF_TRITON_ERROR (parameters_json.AddDouble (
167- name, *(reinterpret_cast <const double *>(vvalue))));
168166 } else {
169167 throw PythonBackendException (
170168 (std::string (" Unsupported parameter type for parameter '" ) +
171169 name + " '." ));
172170 }
173171 }
172+
174173 triton::common::TritonJson::WriteBuffer buffer;
175174 THROW_IF_TRITON_ERROR (parameters_json.Write (&buffer));
176175 parameters_string = buffer.Contents ();
You can’t perform that action at this time.
0 commit comments