Skip to content

Commit

Permalink
[Backend] Add override flag to lite backend (PaddlePaddle#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
DefTruth authored Oct 20, 2022
1 parent 0a22979 commit c28f4d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fastdeploy/backends/lite/lite_backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ class LiteBackend : public BaseBackend {
const std::string& params_file,
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 GetOutputInfo(int index);
TensorInfo GetInputInfo(int index) override;
TensorInfo GetOutputInfo(int index) override;
std::vector<TensorInfo> GetInputInfos() override;
std::vector<TensorInfo> GetOutputInfos() override;

Expand Down

0 comments on commit c28f4d6

Please sign in to comment.