Skip to content

Commit

Permalink
Remove PrecisionsRestriction for Multiply
Browse files Browse the repository at this point in the history
  • Loading branch information
v-Golubev committed Jan 22, 2025
1 parent 5203351 commit c54b9e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -770,10 +770,6 @@ void Transformations::Lpt(const std::vector<ov::element::Type>& defaultPrecision

return PrecisionsRestriction::PrecisionsByPorts{{{0}, input0LowPrecisionList}, {{1}, {ov::element::i8}}};
}),
PrecisionsRestriction::create<ov::opset1::Multiply>({
{{0}, {ov::element::u8}},
{{1}, {ov::element::i8}},
}),
PrecisionsRestriction::create<ov::opset1::MatMul>(
{{{0}, {ov::element::u8, ov::element::i8}}, {{1}, {ov::element::i8}}}),
PrecisionsRestriction::create<ov::opset5::LSTMSequence>({{{0, 1}, {ov::element::u8}}}),
Expand All @@ -791,13 +787,6 @@ void Transformations::Lpt(const std::vector<ov::element::Type>& defaultPrecision
quantizationRestrictions,
LayerTransformation::Params(true, ov::element::f32, defaultPrecisions));

CPU_SET_CALLBACK_COMMON(
lptManager,
[](const_node_ptr& node) -> bool {
return ov::is_type<ov::opset1::Multiply>(node) &&
!MultiplyToGroupConvolutionTransformation::canBeTransformedToGroupConvolution(node);
},
MarkupPrecisions);
CPU_SET_CALLBACK_COMMON(
lptManager,
[&defaultPrecisions](const_node_ptr& node) -> bool {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ using namespace ov::pass::low_precision;

namespace {
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32,
ov::element::f16
ov::element::f32
};

const std::vector<LayerTransformation::Params> trasformationParamValues = {
LayerTestsUtils::LayerTransformationParamsFactory::createParamsU8I8AndI8(),
// LayerTestsUtils::LayerTransformationParamsFactory::createParamsU8I8AndI8().setUpdatePrecisions(false)
};

const std::vector<FakeQuantizeWithNotOptimalTransformationTestValues> fakeQuantizeOnDataValues = {
Expand Down Expand Up @@ -97,7 +95,7 @@ const std::vector<FakeQuantizeWithNotOptimalTransformationTestValues> fakeQuanti
{ {0.3f}, ov::element::f32, {}, false }
},
{},
"u8"
"i8"
}
};

Expand Down

0 comments on commit c54b9e0

Please sign in to comment.