mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-07 01:22:59 +08:00
[benchmark] support lite light api & optimize benchmark flags (#1950)
* [benchmark] support lite light api & optimize benchmark flags * [backend] remove un-used option member * [backend] remove un-used option member
This commit is contained in:
@@ -48,8 +48,9 @@ class LiteBackend : public BaseBackend {
|
||||
std::vector<TensorInfo> GetOutputInfos() override;
|
||||
|
||||
private:
|
||||
// Build CxxConfig from option for Paddle Lite full api.
|
||||
void BuildOption(const LiteBackendOption& option);
|
||||
|
||||
// Configure many hardwares for Paddle Lite full api.
|
||||
void ConfigureCpu(const LiteBackendOption& option);
|
||||
void ConfigureGpu(const LiteBackendOption& option);
|
||||
void ConfigureTimvx(const LiteBackendOption& option);
|
||||
@@ -59,6 +60,7 @@ class LiteBackend : public BaseBackend {
|
||||
|
||||
paddle::lite_api::CxxConfig config_;
|
||||
std::shared_ptr<paddle::lite_api::PaddlePredictor> predictor_;
|
||||
paddle::lite_api::MobileConfig mobile_config_;
|
||||
std::vector<TensorInfo> inputs_desc_;
|
||||
std::vector<TensorInfo> outputs_desc_;
|
||||
std::map<std::string, int> inputs_order_;
|
||||
|
Reference in New Issue
Block a user