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
inference_tensor_data_type_e dataType;
inference_tensor_shape_type_e shapeType; // TODO: define mv_inference_shape_type_e
- LayerInfo() = default;
+ LayerInfo() :
+ name(),
+ dims(),
+ colorSpace(INFERENCE_COLORSPACE_INVALID),
+ dataType(INFERENCE_TENSOR_DATA_TYPE_NONE),
+ shapeType(INFERENCE_TENSOR_SHAPE_NCHW) {};
~LayerInfo() = default;
int GetWidth() const;
inference_box_decoding_type_e decodingType;
public:
- Label() = default;
+ Label() :
+ name(),
+ dimInfo(),
+ decodingType(INFERENCE_BOX_DECODING_TYPE_SSD_ANCHOR) {};
~Label() = default;
std::string GetName() { return name; }
DimInfo GetDimInfo() { return dimInfo; }
DimInfo dimInfo;
public:
- Number() = default;
+ Number() :
+ name(),
+ dimInfo() {};
~Number() = default;
std::string GetName() { return name; }
DimInfo GetDimInfo() { return dimInfo; }
DimInfo dimInfo;
int shapeType;
public:
- OffsetVec() = default;
+ OffsetVec() :
+ name(),
+ dimInfo(),
+ shapeType(INFERENCE_TENSOR_SHAPE_NCHW) {};
~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);
- g_free(model_path);
LOGI("model_path : [%s]\n", model_path);
LOGI("jsonfile path [%s] \n", json_path);
+ g_free(model_path);
g_strfreev(value);
res = ParseMetadata(metadata, std::string(json_path));