Fix build error due to the use of wrong enumeration submit/tizen/20200423.063253 submit/tizen/20200423.064104
authorInki Dae <inki.dae@samsung.com>
Mon, 20 Apr 2020 01:36:56 +0000 (10:36 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 20 Apr 2020 01:36:56 +0000 (10:36 +0900)
Change-Id: Ib92b31e055544322ea394329a24a380247eda5ab
Signed-off-by: Inki Dae <inki.dae@samsung.com>
src/inference_engine_common_impl.cpp

index 1a87fd8..7c5f893 100755 (executable)
@@ -113,7 +113,7 @@ int InferenceEngineCommon::CheckTensorBuffers(std::vector<inference_engine_tenso
                        return INFERENCE_ENGINE_ERROR_INVALID_PARAMETER;
                }
 
-               if (tensor_buffer.data_type <= TENSOR_DATA_TYPE_NONE || tensor_buffer.data_type >= TENSOR_DATA_TYPE_MAX) {
+               if (tensor_buffer.data_type <= INFERENCE_TENSOR_DATA_TYPE_NONE || tensor_buffer.data_type >= INFERENCE_TENSOR_DATA_TYPE_MAX) {
                        LOGE("tensor data type is invalid.");
                        return INFERENCE_ENGINE_ERROR_INVALID_PARAMETER;
                }
@@ -133,7 +133,7 @@ int InferenceEngineCommon::CheckLayerProperty(inference_engine_layer_property &p
                        return INFERENCE_ENGINE_ERROR_INVALID_PARAMETER;
                }
 
-               if (tensor_info.data_type < TENSOR_DATA_TYPE_FLOAT16 || tensor_info.data_type > TENSOR_DATA_TYPE_UINT32) {
+               if (tensor_info.data_type < INFERENCE_TENSOR_DATA_TYPE_FLOAT16 || tensor_info.data_type > INFERENCE_TENSOR_DATA_TYPE_UINT32) {
                        LOGE("tensor data type is invalid.");
                        return INFERENCE_ENGINE_ERROR_INVALID_PARAMETER;
                }