Fixed klockwork issue (#5898)
This commit is contained in:
parent
d49be07a94
commit
a0ce93639d
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue