[Issue type] : bug fix
Initialize _backendType member variable correctly with
MV_INFERENCE_BACKEND_NONE.
This patch fixes a issue that loading default backend type from meta config
file is skipped if user doesn't call mv_task_name_set_engine().
See below parseConfigFile function code in MvMlConfig.cpp,
if (_backendType == MV_INFERENCE_BACKEND_NONE) {
ret = config->getIntegerAttribute(MV_BACKEND_TYPE, &_backendType);
if (ret != MEDIA_VISION_ERROR_NONE)
throw InvalidOperation("Fail to get backend engine type.");
}
Change-Id: I1ae23b9893893e63bea36b40f6d9c75e940cc497
Signed-off-by: Inki Dae <inki.dae@samsung.com>
std::string _modelLabelFilePath;
std::string _pluginFileName;
bool _usePlugin {};
- int _backendType {};
- int _targetDeviceType {};
+ int _backendType { MV_INFERENCE_BACKEND_NONE };
+ int _targetDeviceType { MV_INFERENCE_TARGET_DEVICE_NONE };
double _confidence_threshold {};
public: