[LPT] Security fixes (#9006)
This commit is contained in:
parent
38600949fa
commit
07b6489524
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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(
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user