Skip to content

Commit

Permalink
use different stream when create handle (#2526)
Browse files Browse the repository at this point in the history
  • Loading branch information
irexyc committed Nov 9, 2023
1 parent e31f5a6 commit 2882c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csrc/mmdeploy/apis/c/mmdeploy/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2882c64

Please sign in to comment.