diff options
author | Tae-Young Chung <ty83.chung@samsung.com> | 2021-09-03 10:14:32 +0900 |
---|---|---|
committer | Tae-Young Chung <ty83.chung@samsung.com> | 2021-09-03 10:14:32 +0900 |
commit | fb66c066e2b30adaa194c509cb29b991a4628313 (patch) | |
tree | c5951318fdde1ea0615620de3a714ade4b963a0e /mv_machine_learning/mv_inference | |
parent | 4d6ec3881bfec8d16f68644c2029b575ba590865 (diff) | |
download | mediavision-fb66c066e2b30adaa194c509cb29b991a4628313.tar.gz mediavision-fb66c066e2b30adaa194c509cb29b991a4628313.tar.bz2 mediavision-fb66c066e2b30adaa194c509cb29b991a4628313.zip |
Remove unnecessary dim_type metadata
Change-Id: Ied3b116ad0e34becd9e87caafa59de8069f2639f
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Diffstat (limited to 'mv_machine_learning/mv_inference')
-rw-r--r-- | mv_machine_learning/mv_inference/inference/include/OutputMetadata.h | 4 | ||||
-rwxr-xr-x | mv_machine_learning/mv_inference/inference/src/OutputMetadata.cpp | 8 |
2 files changed, 1 insertions, 11 deletions
diff --git a/mv_machine_learning/mv_inference/inference/include/OutputMetadata.h b/mv_machine_learning/mv_inference/inference/include/OutputMetadata.h index 97c8821e..ca4df800 100644 --- a/mv_machine_learning/mv_inference/inference/include/OutputMetadata.h +++ b/mv_machine_learning/mv_inference/inference/include/OutputMetadata.h @@ -329,14 +329,12 @@ namespace inference std::string name; DimInfo dimInfo; int shapeType; - int dimType; public: OffsetVec() = default; ~OffsetVec() = default; std::string GetName() { return name; } DimInfo GetDimInfo() { return dimInfo; } int GetShapeType() { return shapeType; } - int GetDimType() { return dimType; } int ParseOffset(JsonObject *root); }; @@ -348,7 +346,6 @@ namespace inference DimInfo dimInfo; inference_displacement_type_e type; int shapeType; - int dimType; std::map<std::string, inference_displacement_type_e> supportedDispTypes; public: DispVec(); @@ -357,7 +354,6 @@ namespace inference DimInfo GetDimInfo() { return dimInfo; } inference_displacement_type_e GetType() { return type; } int GetShapeType() { return shapeType; } - int GetDimType() { return dimType; } int ParseDisplacement(JsonObject *root); }; diff --git a/mv_machine_learning/mv_inference/inference/src/OutputMetadata.cpp b/mv_machine_learning/mv_inference/inference/src/OutputMetadata.cpp index d04daff7..8dec3225 100755 --- a/mv_machine_learning/mv_inference/inference/src/OutputMetadata.cpp +++ b/mv_machine_learning/mv_inference/inference/src/OutputMetadata.cpp @@ -920,8 +920,6 @@ namespace inference return MEDIA_VISION_ERROR_INVALID_OPERATION; } - dimType = static_cast<int>(json_object_get_int_member(pObject, "dim_type")); - LOGI("dim type: %d", dimType); } LOGI("LEAVE"); @@ -948,8 +946,7 @@ namespace inference name(), dimInfo(), type(INFERENCE_DISPLACEMENT_TYPE_FORWARD), - shapeType(INFERENCE_TENSOR_SHAPE_NCHW), - dimType(2) + shapeType(INFERENCE_TENSOR_SHAPE_NCHW) { supportedDispTypes.insert({"FORWARD", INFERENCE_DISPLACEMENT_TYPE_FORWARD}); supportedDispTypes.insert({"BACKWARD", INFERENCE_DISPLACEMENT_TYPE_BACKWARD}); @@ -978,9 +975,6 @@ namespace inference return MEDIA_VISION_ERROR_INVALID_OPERATION; } - dimType = static_cast<int>(json_object_get_int_member(root, "dim_type")); - LOGI("dim type: %d", dimType); - LOGI("LEAVE"); return MEDIA_VISION_ERROR_NONE; } |