[Version] 0.4.1-0
[Issue type] Bug fix
1. Initialize member variables in class ctor
2. Fix usage after g_free()
Change-Id: Ib0a44d17801579596fec6c70fdc58cf00a596b9c
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Name: inference-engine-interface
Summary: Interface of inference engines
Name: inference-engine-interface
Summary: Interface of inference engines
-Version: 0.4.0
-Release: 1
+Version: 0.4.1
+Release: 0
Group: Multimedia/Framework
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Group: Multimedia/Framework
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
inference_tensor_data_type_e dataType;
inference_tensor_shape_type_e shapeType; // TODO: define mv_inference_shape_type_e
inference_tensor_data_type_e dataType;
inference_tensor_shape_type_e shapeType; // TODO: define mv_inference_shape_type_e
+ LayerInfo() :
+ name(),
+ dims(),
+ colorSpace(INFERENCE_COLORSPACE_INVALID),
+ dataType(INFERENCE_TENSOR_DATA_TYPE_NONE),
+ shapeType(INFERENCE_TENSOR_SHAPE_NCHW) {};
~LayerInfo() = default;
int GetWidth() const;
~LayerInfo() = default;
int GetWidth() const;
inference_box_decoding_type_e decodingType;
public:
inference_box_decoding_type_e decodingType;
public:
+ Label() :
+ name(),
+ dimInfo(),
+ decodingType(INFERENCE_BOX_DECODING_TYPE_SSD_ANCHOR) {};
~Label() = default;
std::string GetName() { return name; }
DimInfo GetDimInfo() { return dimInfo; }
~Label() = default;
std::string GetName() { return name; }
DimInfo GetDimInfo() { return dimInfo; }
+ Number() :
+ name(),
+ dimInfo() {};
~Number() = default;
std::string GetName() { return name; }
DimInfo GetDimInfo() { return dimInfo; }
~Number() = default;
std::string GetName() { return name; }
DimInfo GetDimInfo() { return dimInfo; }
DimInfo dimInfo;
int shapeType;
public:
DimInfo dimInfo;
int shapeType;
public:
+ OffsetVec() :
+ name(),
+ dimInfo(),
+ shapeType(INFERENCE_TENSOR_SHAPE_NCHW) {};
~OffsetVec() = default;
std::string GetName() { return name; }
DimInfo GetDimInfo() { return dimInfo; }
~OffsetVec() = default;
std::string GetName() { return name; }
DimInfo GetDimInfo() { return dimInfo; }
value = g_strsplit(cmd2, ".", 0);
json_path = g_strdup_printf("%s.json", value[0]);
model_paths.push_back(model_path);
value = g_strsplit(cmd2, ".", 0);
json_path = g_strdup_printf("%s.json", value[0]);
model_paths.push_back(model_path);
LOGI("model_path : [%s]\n", model_path);
LOGI("jsonfile path [%s] \n", json_path);
LOGI("model_path : [%s]\n", model_path);
LOGI("jsonfile path [%s] \n", json_path);
g_strfreev(value);
res = ParseMetadata(metadata, std::string(json_path));
g_strfreev(value);
res = ParseMetadata(metadata, std::string(json_path));