mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 00:33:03 +08:00
[Backend] Add override flag to lite backend (#402)
This commit is contained in:
@@ -56,14 +56,14 @@ class LiteBackend : public BaseBackend {
|
|||||||
const std::string& params_file,
|
const std::string& params_file,
|
||||||
const LiteBackendOption& option = LiteBackendOption());
|
const LiteBackendOption& option = LiteBackendOption());
|
||||||
|
|
||||||
bool Infer(std::vector<FDTensor>& inputs, std::vector<FDTensor>* outputs);
|
bool Infer(std::vector<FDTensor>& inputs, std::vector<FDTensor>* outputs) override; // NOLINT
|
||||||
|
|
||||||
int NumInputs() const { return inputs_desc_.size(); }
|
int NumInputs() const override { return inputs_desc_.size(); }
|
||||||
|
|
||||||
int NumOutputs() const { return outputs_desc_.size(); }
|
int NumOutputs() const override { return outputs_desc_.size(); }
|
||||||
|
|
||||||
TensorInfo GetInputInfo(int index);
|
TensorInfo GetInputInfo(int index) override;
|
||||||
TensorInfo GetOutputInfo(int index);
|
TensorInfo GetOutputInfo(int index) override;
|
||||||
std::vector<TensorInfo> GetInputInfos() override;
|
std::vector<TensorInfo> GetInputInfos() override;
|
||||||
std::vector<TensorInfo> GetOutputInfos() override;
|
std::vector<TensorInfo> GetOutputInfos() override;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user