Skip to content

Commit 2882c64

Browse files
authored
use different stream when create handle (#2526)
1 parent e31f5a6 commit 2882c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csrc/mmdeploy/apis/c/mmdeploy/common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ int mmdeploy_context_add(mmdeploy_context_t context, mmdeploy_context_type_t typ
9393
case MMDEPLOY_TYPE_DEVICE: {
9494
const auto& device = *(Device*)object;
9595
ctx["device"] = device;
96-
ctx["stream"] = Stream::GetDefault(device);
96+
ctx["stream"] = Stream(device);
9797
break;
9898
}
9999
case MMDEPLOY_TYPE_SCHEDULER:

0 commit comments

Comments
 (0)