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(
147
147
uint32_t parameter_count;
148
148
THROW_IF_TRITON_ERROR (TRITONSERVER_InferenceResponseParameterCount (
149
149
response, ¶meter_count));
150
+
150
151
for (size_t i = 0 ; i < parameter_count; i++) {
151
152
const char * name;
152
153
TRITONSERVER_ParameterType type;
@@ -162,15 +163,13 @@ InferResponseComplete(
162
163
} else if (type == TRITONSERVER_PARAMETER_STRING) {
163
164
std::string string = reinterpret_cast <const char *>(vvalue);
164
165
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))));
168
166
} else {
169
167
throw PythonBackendException (
170
168
(std::string (" Unsupported parameter type for parameter '" ) +
171
169
name + " '." ));
172
170
}
173
171
}
172
+
174
173
triton::common::TritonJson::WriteBuffer buffer;
175
174
THROW_IF_TRITON_ERROR (parameters_json.Write (&buffer));
176
175
parameters_string = buffer.Contents ();
You can’t perform that action at this time.
0 commit comments