[LPT] Klocwork fixes (#5981)

This commit is contained in:
Vladislav Golubev authored and GitHub committed 2021-06-04 18:34:59 +03:00
1 parent 62c37a8194
commit 06811924f4
3 files changed
+7

No files matched your search

@@ -32,6 +32,7 @@ public:
LowPrecisionTransformations() {}
LowPrecisionTransformations(
const std::map<std::string, LayerTransformationPtr>& branchSpecificTransformations,
const std::map<std::string, LayerTransformationPtr>& decompositionTransformations,
const std::map<std::string, LayerTransformationPtr>& transformations,
const std::map<std::string, std::vector<std::pair<std::string, LayerTransformationPtr>>>& cleanupTransformations,
const std::vector<StandaloneCleanup>& standaloneCleanupTransformations);
@@ -24,6 +24,10 @@ void ConvertTransformation::registerMatcherIn(GraphRewrite &pass, Transformation
bool ConvertTransformation::transform(TransformationContext& context, ngraph::pattern::Matcher &m) const {
std::shared_ptr<opset1::Convert> convert = as_type_ptr<opset1::Convert>(m.get_match_root());
if (!convert) {
return false;
}
if (!canBeTransformed(context, convert)) {
return false;
}
@@ -76,10 +76,12 @@ namespace low_precision {
LowPrecisionTransformations::LowPrecisionTransformations(
const std::map<std::string, LayerTransformationPtr>& branchSpecificTransformations,
const std::map<std::string, LayerTransformationPtr>& decompositionTransformations,
const std::map<std::string, LayerTransformationPtr>& transformations,
const std::map<std::string, std::vector<std::pair<std::string, LayerTransformationPtr>>>& cleanupTransformations,
const std::vector<StandaloneCleanup>& standaloneCleanupTransformations) :
branchSpecificTransformations(branchSpecificTransformations),
decompositionTransformations(decompositionTransformations),
transformations(transformations),
cleanupTransformations(cleanupTransformations),
standaloneCleanupTransformations(standaloneCleanupTransformations) {}