mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-16 13:41:30 +08:00
[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:
@@ -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_;
|
||||
|
Reference in New Issue
Block a user