mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
reuse setStream c++ interface, add set_raw_stream python api
This commit is contained in:
@@ -93,10 +93,6 @@ void RuntimeOption::SetExternalStream(void* external_stream) {
|
||||
external_stream_ = external_stream;
|
||||
}
|
||||
|
||||
void RuntimeOption::SetExternalRawStream(size_t external_stream) {
|
||||
external_stream_ = (void*) external_stream;
|
||||
}
|
||||
|
||||
void RuntimeOption::SetCpuThreadNum(int thread_num) {
|
||||
FDASSERT(thread_num > 0, "The thread_num must be greater than 0.");
|
||||
cpu_thread_num = thread_num;
|
||||
|
||||
Reference in New Issue
Block a user