Skip to content

Commit 13b07fa

Browse files
committed
remove double
1 parent 9337272 commit 13b07fa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/request_executor.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ InferResponseComplete(
147147
uint32_t parameter_count;
148148
THROW_IF_TRITON_ERROR(TRITONSERVER_InferenceResponseParameterCount(
149149
response, &parameter_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();

0 commit comments

Comments
 (0)