Skip to content

Commit

Permalink
revert network_helper changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alvoron committed Nov 19, 2024
1 parent c40e695 commit ff886c4
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/common/low_precision_transformations/src/network_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "low_precision/common/ie_lpt_exception.hpp"
#include "low_precision/layer_transformation.hpp"
#include "low_precision/network_helper.hpp"
#include "low_precision/rt_info/bias_attribute.hpp"
#include "low_precision/rt_info/intervals_alignment_attribute.hpp"
#include "low_precision/rt_info/precision_preserved_attribute.hpp"
#include "low_precision/rt_info/quantization_alignment_attribute.hpp"
Expand Down Expand Up @@ -1193,7 +1192,7 @@ FakeQuantizeDequantization NetworkHelper::getDequantization(const std::shared_pt
const std::shared_ptr<ov::opset1::Multiply> multiply = ov::as_type_ptr<ov::opset1::Multiply>(dataNode.get_node_shared_ptr());
std::shared_ptr<ov::opset1::Constant> multiplyConstant;
if (multiply != nullptr) {
if (!FakeQuantizeDequantization::checkShape(multiply) || ov::marked_as_bias(multiply)) {
if (!FakeQuantizeDequantization::checkShape(multiply)) {
return FakeQuantizeDequantization();
}

Expand All @@ -1208,9 +1207,6 @@ FakeQuantizeDequantization NetworkHelper::getDequantization(const std::shared_pt
std::shared_ptr<ov::opset1::Convert> subtractConvert;
std::shared_ptr<ov::opset1::Constant> subtractConstant;
if (subtract != nullptr) {
if (ov::marked_as_bias(subtract)) {
return FakeQuantizeDequantization();
}
if (!FakeQuantizeDequantization::checkShape(subtract)) {
return FakeQuantizeDequantization(dataNode, nullptr, nullptr, nullptr, nullptr, multiply, multiplyConstant);
}
Expand All @@ -1224,9 +1220,6 @@ FakeQuantizeDequantization NetworkHelper::getDequantization(const std::shared_pt

const std::shared_ptr<ov::opset1::Convert> convert = ov::as_type_ptr<ov::opset1::Convert>(dataNode.get_node_shared_ptr());
if (convert != nullptr) {
if (ov::marked_as_bias(convert)) {
return FakeQuantizeDequantization();
}
auto el_type = convert->input(0).get_element_type();
auto foundIt = std::find(defaultPrecisions.begin(), defaultPrecisions.end(), el_type);
if (foundIt == defaultPrecisions.end() &&
Expand Down Expand Up @@ -1904,4 +1897,4 @@ bool NetworkHelper::checkConstantNotInf(const std::shared_ptr<Node> constant_nod
}
} // namespace low_precision
} // namespace pass
} // namespace ov
} // namespace ov

0 comments on commit ff886c4

Please sign in to comment.