File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -1303,6 +1303,14 @@ ModelInstanceState::ResponseSendDecoupled(
1303
1303
SetErrorForResponseSendMessage (
1304
1304
send_message_payload, WrapTritonErrorInSharedPtr (error), error_message);
1305
1305
}
1306
+
1307
+ if (send_message_payload->flags == TRITONSERVER_RESPONSE_COMPLETE_FINAL) {
1308
+ // Delete response factory
1309
+ std::unique_ptr<
1310
+ TRITONBACKEND_ResponseFactory, backend::ResponseFactoryDeleter>
1311
+ response_factory (reinterpret_cast <TRITONBACKEND_ResponseFactory*>(
1312
+ send_message_payload->response_factory_address ));
1313
+ }
1306
1314
}
1307
1315
1308
1316
TRITONSERVER_Error*
Original file line number Diff line number Diff line change @@ -47,10 +47,11 @@ ResponseSender::ResponseSender(
47
47
48
48
ResponseSender::~ResponseSender ()
49
49
{
50
- std::unique_ptr<Stub>& stub = Stub::GetOrCreateInstance ();
51
- stub->EnqueueCleanupId (
52
- reinterpret_cast <void *>(response_factory_address_),
53
- PYTHONSTUB_DecoupledResponseFactoryCleanup);
50
+ // std::cerr << "===== ResponseSender::~ResponseSender() =====" << std::endl;
51
+ // std::unique_ptr<Stub>& stub = Stub::GetOrCreateInstance();
52
+ // stub->EnqueueCleanupId(
53
+ // reinterpret_cast<void*>(response_factory_address_),
54
+ // PYTHONSTUB_DecoupledResponseFactoryCleanup);
54
55
}
55
56
56
57
void
You can’t perform that action at this time.
0 commit comments