From 366c84f0637c4a1ae3c663e5a8c014810071ae9a Mon Sep 17 00:00:00 2001 From: Xin Chen Date: Tue, 31 Oct 2023 20:17:53 +0800 Subject: [PATCH] use different stream when create handle --- csrc/mmdeploy/apis/c/mmdeploy/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csrc/mmdeploy/apis/c/mmdeploy/common.cpp b/csrc/mmdeploy/apis/c/mmdeploy/common.cpp index 1936be3353..e00cc3f1cf 100644 --- a/csrc/mmdeploy/apis/c/mmdeploy/common.cpp +++ b/csrc/mmdeploy/apis/c/mmdeploy/common.cpp @@ -93,7 +93,7 @@ int mmdeploy_context_add(mmdeploy_context_t context, mmdeploy_context_type_t typ case MMDEPLOY_TYPE_DEVICE: { const auto& device = *(Device*)object; ctx["device"] = device; - ctx["stream"] = Stream::GetDefault(device); + ctx["stream"] = Stream(device); break; } case MMDEPLOY_TYPE_SCHEDULER: