mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-16 21:51:31 +08:00
[Backend] support ipu in paddle inference backend. (#437)
* feat(ipu): add ipu support for paddle_infer backend. * fix(): remove unused env. * fix(ipu): simplify user API for IPU. * fix(cmake): fix merge conflict error in CMakeList. Co-authored-by: Jason <jiangjiajun@baidu.com>
This commit is contained in:
@@ -35,6 +35,9 @@ class FASTDEPLOY_DECL FastDeployModel {
|
||||
/** Model's valid gpu backends. This member defined all the gpu backends have successfully tested for the model
|
||||
*/
|
||||
std::vector<Backend> valid_gpu_backends = {Backend::ORT};
|
||||
/** Model's valid ipu backends. This member defined all the ipu backends have successfully tested for the model
|
||||
*/
|
||||
std::vector<Backend> valid_ipu_backends = {Backend::PDINFER};
|
||||
/// Get number of inputs for this model
|
||||
virtual int NumInputsOfRuntime() { return runtime_->NumInputs(); }
|
||||
/// Get number of outputs for this model
|
||||
@@ -95,6 +98,7 @@ class FASTDEPLOY_DECL FastDeployModel {
|
||||
virtual bool InitRuntime();
|
||||
virtual bool CreateCpuBackend();
|
||||
virtual bool CreateGpuBackend();
|
||||
virtual bool CreateIpuBackend();
|
||||
bool initialized = false;
|
||||
std::vector<Backend> valid_external_backends;
|
||||
|
||||
|
Reference in New Issue
Block a user