[Other] Seperate option from backends (#1048)

* Seperate option from backends

* Seperate option from backends

* Seperate option from backends

* Seperate option from backends
This commit is contained in:
Jason
2023-01-04 15:06:55 +08:00
committed by GitHub
parent 97a0a9e33f
commit 0c292c0766
15 changed files with 531 additions and 401 deletions

View File

@@ -21,18 +21,11 @@
#include "fastdeploy/backends/backend.h"
#include "fastdeploy/utils/unique_ptr.h"
#include "fastdeploy/backends/openvino/option.h"
#include "openvino/openvino.hpp"
namespace fastdeploy {
struct OpenVINOBackendOption {
std::string device = "CPU";
int cpu_thread_num = -1;
int num_streams = 0;
std::map<std::string, std::vector<int64_t>> shape_infos;
std::set<std::string> cpu_operators{"MulticlassNms"};
};
class OpenVINOBackend : public BaseBackend {
public:
static ov::Core core_;