mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 08:37:06 +08:00
[Serving][backend]serving support multi stream and backend support external stream (#431)
* serving support multi stream * pybind add external stream Co-authored-by: Jason <jiangjiajun@baidu.com>
This commit is contained in:
@@ -102,6 +102,8 @@ struct FASTDEPLOY_DECL RuntimeOption {
|
||||
/// Use Nvidia GPU to inference
|
||||
void UseGpu(int gpu_id = 0);
|
||||
|
||||
void SetExternalStream(void* external_stream);
|
||||
|
||||
/*
|
||||
* @brief Set number of cpu threads while inference on CPU, by default it will decided by the different backends
|
||||
*/
|
||||
@@ -232,6 +234,8 @@ struct FASTDEPLOY_DECL RuntimeOption {
|
||||
|
||||
Device device = Device::CPU;
|
||||
|
||||
void* external_stream_ = nullptr;
|
||||
|
||||
bool enable_pinned_memory = false;
|
||||
|
||||
// ======Only for ORT Backend========
|
||||
|
Reference in New Issue
Block a user