From 5b34579e7020f0f6a591de854d6363ac0e399ec6 Mon Sep 17 00:00:00 2001 From: anikulk Date: Thu, 9 Nov 2023 15:21:04 -0800 Subject: [PATCH] Remove misleading error log --- ngraph_creator/operations/src/OperationsBase.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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(),