[LPT] Security fixes (#9006)

This commit is contained in:
Vladislav Golubev 2021-12-08 12:07:05 +03:00 committed by GitHub
parent 38600949fa
commit 07b6489524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ public:
NGRAPH_RTTI_DECLARATION;
AvgPoolTransformation(const Params& params = Params());
bool transform(TransformationContext& context, ngraph::pattern::Matcher &m) override;
bool isPrecisionPreserved(std::shared_ptr<Node> layer) const noexcept override;
bool isPrecisionPreserved(std::shared_ptr<Node> layer) const override;
bool canBeTransformed(const TransformationContext& context, std::shared_ptr<Node> layer) const override;
};

View File

@ -260,7 +260,7 @@ public:
// return true if operation can be preserved for precision
// note: dequantization operations on activations are absent during method execution
virtual bool isPrecisionPreserved(std::shared_ptr<Node> layer) const noexcept = 0;
virtual bool isPrecisionPreserved(std::shared_ptr<Node> layer) const = 0;
// weights specific
static DataPrecision getDataPrecision(

View File

@ -54,7 +54,7 @@ bool AvgPoolTransformation::canBeTransformed(const TransformationContext& contex
return !dequantization.empty();
}
bool AvgPoolTransformation::isPrecisionPreserved(std::shared_ptr<Node> layer) const noexcept {
bool AvgPoolTransformation::isPrecisionPreserved(std::shared_ptr<Node> layer) const {
return NetworkHelper::isPrecisionPreserved(layer);
}