Change-Id: I47a65126b6a5532477cd7b3fd2b30dc2f1153348
Signed-off-by: Inki Dae <inki.dae@samsung.com>
return INFERENCE_ENGINE_ERROR_INVALID_PARAMETER;
}
- if (tensor_info.data_type < INFERENCE_TENSOR_DATA_TYPE_FLOAT16 ||
- tensor_info.data_type > INFERENCE_TENSOR_DATA_TYPE_UINT32) {
+ if (tensor_info.data_type <= INFERENCE_TENSOR_DATA_TYPE_NONE ||
+ tensor_info.data_type >= INFERENCE_TENSOR_DATA_TYPE_MAX) {
LOGE("tensor data type is invalid.");
return INFERENCE_ENGINE_ERROR_INVALID_PARAMETER;
}