diff --git a/ngraph_creator/operations/src/OperationsBase.cpp b/ngraph_creator/operations/src/OperationsBase.cpp index e4b150a3b..5ee8ed6c7 100644 --- a/ngraph_creator/operations/src/OperationsBase.cpp +++ b/ngraph_creator/operations/src/OperationsBase.cpp @@ -105,12 +105,10 @@ bool OperationsBase::validateForPlugin() { return validate(); } -bool OperationsBase::checkOperandType(uint32_t operandIndex, const int32_t expectedOperandType, +bool OperationsBase::checkOperandType(uint32_t operandIndex, const int32_t compareOperandType, const std::string& strLogInfo) { const auto operandType = (int32_t)sModelInfo->getOperandType(operandIndex); - if (operandType != expectedOperandType) { - ALOGE("OperationIndex %d %s Index %d type %d invalid", mNnapiOperationIndex, - strLogInfo.c_str(), operandIndex, operandType); + if (operandType != compareOperandType) { return false; } ALOGV("OperationIndex %d %s Index %d type %d PASSED", mNnapiOperationIndex, strLogInfo.c_str(),