Fixed klockwork issue (#5898)

This commit is contained in:
Ilya Lavrenov authored and GitHub committed 2021-05-31 13:21:20 +03:00
1 parent d49be07a94
commit a0ce93639d
2 files changed
+11 -1

No files matched your search

@@ -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");
}
}
+11
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;
}
};
/**