[Other] Add function alias (#571)

Add function alias
This commit is contained in:
Jason
2022-11-12 14:53:39 +08:00
committed by GitHub
parent 2693434190
commit f2e492c55b
2 changed files with 22 additions and 4 deletions

View File

@@ -115,6 +115,11 @@ struct FASTDEPLOY_DECL RuntimeOption {
/// Set Paddle Inference as inference backend, support CPU/GPU
void UsePaddleBackend();
/// Wrapper function of UsePaddleBackend()
void UsePaddleInferBackend() {
return UsePaddleBackend();
}
/// Set ONNX Runtime as inference backend, support CPU/GPU
void UseOrtBackend();
@@ -130,6 +135,11 @@ struct FASTDEPLOY_DECL RuntimeOption {
/// Set Paddle Lite as inference backend, only support arm cpu
void UseLiteBackend();
/// Wrapper function of UseLiteBackend()
void UsePaddleLiteBackend() {
return UseLiteBackend();
}
/// Set mkldnn switch while using Paddle Inference as inference backend
void SetPaddleMKLDNN(bool pd_mkldnn = true);