Fixed klockwork issue (#5898)

This commit is contained in:
Ilya Lavrenov 2021-05-31 13:21:20 +03:00 committed by GitHub
parent d49be07a94
commit a0ce93639d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -42,7 +42,6 @@ bool ngraph::pass::AddPreprocessing::run_on_function(std::shared_ptr<ngraph::Fun
NGRAPH_CHECK(meanImage->getTensorDesc().getPrecision() == InferenceEngine::Precision::FP32,
"Only InferenceEngine::Precision::FP32 precision is supported for PreProcessChannel::meanData");
} else {
NGRAPH_CHECK(pInfo[c]->meanData != nullptr, "pInfo[c]->meanData is nullptr");
NGRAPH_CHECK(meanImage->getTensorDesc() == pInfo[c]->meanData->getTensorDesc(), "TensorDesc for PreProcessChannel::meanData must be equal");
}
}

View File

@ -74,6 +74,17 @@ struct Version {
major = _major;
minor = _minor;
}
/**
* @brief A copy operator
* @param other An object to copy
* @return A copy
*/
ApiVersion& operator=(const ApiVersion& other) {
major = other.major;
minor = other.minor;
return *this;
}
};
/**