class InferenceEngineCommon {
public:
- /**
- * Deprecated.
- */
InferenceEngineCommon();
- /**
- * Deprecated.
- */
- InferenceEngineCommon(std::string backend);
-
- /**
- * Deprecated.
- */
- InferenceEngineCommon(inference_backend_type_e backend);
-
- /**
- * @brief Intialization.
- * @details Load the backend engine by dlopen() and initialize the engine by
- * calling EngineCommonInit which is found by dlsym().
- * @since_tizen 6.0
- */
- InferenceEngineCommon(inference_engine_config *config);
-
~InferenceEngineCommon();
mProfilerDumpType(IE_PROFILER_DUMP_MIN),
mBackendModule(nullptr),
mBackendHandle(nullptr)
-{
- LOGE("ENTER");
-
- InferenceEngineInI ini;
- ini.LoadInI();
- mSelectedBackendEngine = static_cast<inference_backend_type_e>(ini.GetSelectedBackendEngine());
- SetBackendEngine(mSelectedBackendEngine);
- LOGI("Backend engine is selected by ini file [%d]", mSelectedBackendEngine);
- LOGE("LEAVE");
-}
-
-InferenceEngineCommon::InferenceEngineCommon(std::string backend) :
- mSelectedBackendEngine(INFERENCE_BACKEND_NONE),
- mProfiler(nullptr),
- mUseProfiler(false),
- mProfilerDumpType(IE_PROFILER_DUMP_MIN),
- mBackendModule(nullptr),
- mBackendHandle(nullptr)
-{
- LOGE("ENTER");
-
- mBackendLibName = "libinference-engine-" + backend + ".so";
-
- LOGE("LEAVE");
-}
-
-InferenceEngineCommon::InferenceEngineCommon(inference_backend_type_e backend) :
- mSelectedBackendEngine(INFERENCE_BACKEND_NONE),
- mProfiler(nullptr),
- mUseProfiler(false),
- mProfilerDumpType(IE_PROFILER_DUMP_MIN),
- mBackendModule(nullptr),
- mBackendHandle(nullptr)
-{
- LOGE("ENTER");
-
- SetBackendEngine(backend);
- LOGI("Backend engine is selected by enum input[%d] set[%d]", backend, mSelectedBackendEngine);
- LOGE("LEAVE");
-}
-
-
-InferenceEngineCommon::InferenceEngineCommon(inference_engine_config *config) :
- mSelectedBackendEngine(INFERENCE_BACKEND_NONE),
- mProfiler(nullptr),
- mUseProfiler(false),
- mProfilerDumpType(IE_PROFILER_DUMP_MIN),
- mBackendModule(nullptr),
- mBackendHandle(nullptr)
{
LOGI("ENTER");
LOGI("LEAVE");
.target_devices = target_devices
};
- InferenceEngineCommon *engine = new InferenceEngineCommon(&config);
+ InferenceEngineCommon *engine = new InferenceEngineCommon();
if (engine == nullptr) {
ASSERT_TRUE(engine);
return;
.target_devices = target_devices
};
- InferenceEngineCommon *engine = new InferenceEngineCommon(&config);
+ InferenceEngineCommon *engine = new InferenceEngineCommon();
if (engine == nullptr) {
ASSERT_TRUE(engine);
return;
.target_devices = target_devices
};
- InferenceEngineCommon *engine = new InferenceEngineCommon(&config);
+ InferenceEngineCommon *engine = new InferenceEngineCommon();
if (engine == nullptr) {
ASSERT_TRUE(engine);
return;
.target_devices = target_devices
};
- InferenceEngineCommon *engine = new InferenceEngineCommon(&config);
+ InferenceEngineCommon *engine = new InferenceEngineCommon();
ASSERT_TRUE(engine);
int ret = engine->BindBackend(&config);
.target_devices = target_devices
};
- InferenceEngineCommon *engine = new InferenceEngineCommon(&config);
+ InferenceEngineCommon *engine = new InferenceEngineCommon();
ASSERT_TRUE(engine);
int ret = engine->BindBackend(&config);
.target_devices = target_devices
};
- InferenceEngineCommon *engine = new InferenceEngineCommon(&config);
+ InferenceEngineCommon *engine = new InferenceEngineCommon();
if (engine == nullptr) {
ASSERT_TRUE(engine);
return;