2021-12-07 10:57:55 +08:00
|
|
|
// Copyright (c) OpenMMLab. All rights reserved.
|
|
|
|
|
|
|
|
#ifndef MMDEPLOY_SRC_PIPELINE_INFERENCE_H_
|
|
|
|
#define MMDEPLOY_SRC_PIPELINE_INFERENCE_H_
|
|
|
|
|
|
|
|
#include "graph/pipeline.h"
|
|
|
|
|
|
|
|
namespace mmdeploy::graph {
|
|
|
|
|
2021-12-16 13:51:22 +08:00
|
|
|
class Inference : public BaseNode {
|
2021-12-07 10:57:55 +08:00
|
|
|
public:
|
2021-12-16 13:51:22 +08:00
|
|
|
explicit Inference(const Value& cfg);
|
2021-12-07 10:57:55 +08:00
|
|
|
|
|
|
|
void Build(TaskGraph& graph) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
Model model_;
|
|
|
|
unique_ptr<Pipeline> pipeline_;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace mmdeploy::graph
|
|
|
|
|
|
|
|
#endif // MMDEPLOY_SRC_PIPELINE_INFERNECE_H_
|