Skip to content

Commit 3a2182f

Browse files
committed
move code
1 parent c6a9930 commit 3a2182f

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

src/request_executor.cc

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -141,23 +141,9 @@ InferResponseComplete(
141141
output_tensors.push_back(pb_tensor);
142142
}
143143
}
144-
}
145-
catch (const PythonBackendException& pb_exception) {
146-
if (response != nullptr) {
147-
LOG_IF_ERROR(
148-
TRITONSERVER_InferenceResponseDelete(response),
149-
"Failed to delete inference response.");
150144

151-
response = nullptr;
152-
}
153-
pb_error = std::make_shared<PbError>(pb_exception.what());
154-
output_tensors.clear();
155-
}
156-
157-
try {
158145
triton::common::TritonJson::Value parameters_json(
159146
triton::common::TritonJson::ValueType::OBJECT);
160-
std::cerr << "debug ziqif: response = " << response << std::endl;
161147
uint32_t parameter_count;
162148
THROW_IF_TRITON_ERROR(TRITONSERVER_InferenceResponseParameterCount(
163149
response, &parameter_count));
@@ -185,10 +171,6 @@ InferResponseComplete(
185171
name + "'."));
186172
}
187173
}
188-
189-
triton::common::TritonJson::WriteBuffer buffer;
190-
THROW_IF_TRITON_ERROR(parameters_json.Write(&buffer));
191-
parameters_string = buffer.Contents();
192174
}
193175
catch (const PythonBackendException& pb_exception) {
194176
if (response != nullptr) {
@@ -199,6 +181,7 @@ InferResponseComplete(
199181
response = nullptr;
200182
}
201183
pb_error = std::make_shared<PbError>(pb_exception.what());
184+
output_tensors.clear();
202185
}
203186

204187
if (!infer_payload->IsDecoupled()) {

0 commit comments

Comments
 (0)