Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

Weight group compressed condition update (#33728)

Chenhu Wang82a41fc0f118
diff --git a/src/common/transformations/src/transformations/op_conversions/convert_fc_to_compressed.cpp b/src/common/transformations/src/transformations/op_conversions/convert_fc_to_compressed.cpp
index 4899d7822f3..54a7a57ed7f 100644
--- a/src/common/transformations/src/transformations/op_conversions/convert_fc_to_compressed.cpp
+++ b/src/common/transformations/src/transformations/op_conversions/convert_fc_to_compressed.cpp
@@ -4,7 +4,6 @@
#include "transformations/op_conversions/convert_fc_to_compressed.hpp"
-#include <algorithm>
#include <memory>
#include <tuple>
@@ -149,9 +148,7 @@ ConvertFullyConnectedToFullyConnectedCompressed::ConvertFullyConnectedToFullyCon
const auto& weights_shape = fc->get_input_shape(1);
bool batched_weights = weights_shape.size() == 3 && weights_shape[0] > 1;
auto scale_shape = weights_block->get_anchor("mul_const", pattern_map).value().get_shape();
- bool grouped = std::count_if(scale_shape.begin(), scale_shape.end(), [](size_t d) {
- return d > 1;
- }) > (batched_weights ? 2 : 1);
+ bool grouped = scale_shape.size() == weights_shape.size() + 1;
ov::NodeVector result_nodes;
const auto [fc_input_b, fc_input_scale, fc_input_zp] = process_compressed_weights(weights_block,
pattern_map,
diff --git a/src/common/transformations/tests/op_conversions/convert_fc_to_compressed_test.cpp b/src/common/transformations/tests/op_conversions/convert_fc_to_compressed_test.cpp
new file mode 100644
index 00000000000..798b8dcd095
--- /dev/null
+++ b/src/common/transformations/tests/op_conversions/convert_fc_to_compressed_test.cpp
@@ -0,0 +1,133 @@
+// Copyright (C) 2018-2026 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#include "transformations/op_conversions/convert_fc_to_compressed.hpp"
+
+#include <memory>
+
+#include "common_test_utils/ov_test_utils.hpp"
+#include "openvino/core/model.hpp"
+#include "openvino/op/constant.hpp"
+#include "openvino/op/convert.hpp"
+#include "openvino/op/multiply.hpp"
+#include "openvino/op/parameter.hpp"
+#include "openvino/op/reshape.hpp"
+#include "openvino/op/subtract.hpp"
+#include "openvino/pass/manager.hpp"
+#include "ov_ops/fully_connected.hpp"
+#include "ov_ops/fully_connected_compressed.hpp"
+
+namespace {
+struct ConvertFCToCompressedParams {
+ ov::element::Type compressed_type;
+ bool with_zp;
+ bool grouped;
+ ov::PartialShape in_shape;
+ ov::Shape wei_shape;
+ ov::Shape scale_zp_shape;
+};
+
+class ConvertFCToCompressed : public testing::WithParamInterface<ConvertFCToCompressedParams>,
+ public TransformationTestsF {};
+
+TEST_P(ConvertFCToCompressed, ConvertFCToCompressedTest) {
+ const auto& params = GetParam();
+ ov::element::Type compressed_type_ = params.compressed_type;
+ bool with_zp_ = params.with_zp;
+ bool grouped_ = params.grouped;
+ ov::PartialShape in_shape_ = params.in_shape;
+ ov::Shape wei_shape_ = params.wei_shape;
+ ov::Shape scale_zp_shape_ = params.scale_zp_shape;
+ const std::vector<ov::element::Type> supported_activation_types{ov::element::f32};
+ const std::vector<ov::element::Type> supported_weights_types{compressed_type_};
+
+ manager.register_pass<ov::pass::ConvertFullyConnectedToFullyConnectedCompressed>(supported_activation_types,
+ supported_weights_types);
+
+ auto weight_reshaped_dims = [&]() {
+ std::vector<int64_t> wei_reshaped;
+ for (size_t i = 0; i < wei_shape_.size() - 2; ++i) {
+ wei_reshaped.push_back(static_cast<int64_t>(wei_shape_[i]));
+ }
+ int64_t combined_dim = static_cast<int64_t>(wei_shape_[wei_shape_.size() - 2]) *
+ static_cast<int64_t>(wei_shape_[wei_shape_.size() - 1]);
+ wei_reshaped.push_back(combined_dim);
+ return wei_reshaped;
+ };
+ {
+ auto input = std::make_shared<ov::op::v0::Parameter>(ov::element::f32, in_shape_);
+ auto weights_const = ov::op::v0::Constant::create(compressed_type_, wei_shape_, {1});
+ std::shared_ptr<ov::op::Op> wei_convert =
+ std::make_shared<ov::op::v0::Convert>(weights_const, ov::element::f32);
+
+ if (with_zp_) {
+ auto zp_const = ov::op::v0::Constant::create(compressed_type_, scale_zp_shape_, {1});
+ auto zp_convert = std::make_shared<ov::op::v0::Convert>(zp_const, ov::element::f32);
+ wei_convert = std::make_shared<ov::op::v1::Subtract>(wei_convert, zp_convert);
+ }
+
+ auto scale_const = ov::op::v0::Constant::create(ov::element::f32, scale_zp_shape_, {1});
+ std::shared_ptr<ov::op::Op> wei_scale = std::make_shared<ov::op::v1::Multiply>(wei_convert, scale_const);
+
+ if (grouped_) {
+ std::vector<int64_t> wei_reshaped = weight_reshaped_dims();
+ auto reshape_pattern =
+ ov::op::v0::Constant::create(ov::element::i32, ov::Shape{wei_reshaped.size()}, wei_reshaped);
+ wei_scale = std::make_shared<ov::op::v1::Reshape>(wei_scale, reshape_pattern, false);
+ }
+ auto bias = std::make_shared<ov::op::v0::Constant>(ov::element::f32, ov::Shape{0});
+ auto fc = std::make_shared<ov::op::internal::FullyConnected>(input, wei_scale, bias);
+
+ model = std::make_shared<ov::Model>(ov::OutputVector{fc}, ov::ParameterVector{input});
+ }
+ {
+ auto input = std::make_shared<ov::op::v0::Parameter>(ov::element::f32, in_shape_);
+ auto reshape_dims = wei_shape_;
+ if (grouped_) {
+ std::vector<int64_t> reshaped_vec = weight_reshaped_dims();
+ reshape_dims = ov::Shape(reshaped_vec.begin(), reshaped_vec.end());
+ }
+ auto weights_const = ov::op::v0::Constant::create(compressed_type_, reshape_dims, {1});
+ auto scale_zp_shape = scale_zp_shape_;
+ if (grouped_) {
+ scale_zp_shape.pop_back();
+ }
+ auto scale_const = ov::op::v0::Constant::create(ov::element::f32, scale_zp_shape, {1});
+ auto bias = std::make_shared<ov::op::v0::Constant>(ov::element::f32, ov::Shape{0});
+ auto fc_compressed =
+ std::make_shared<ov::op::internal::FullyConnectedCompressed>(input, weights_const, bias, scale_const);
+ if (with_zp_) {
+ auto zp_const = ov::op::v0::Constant::create(compressed_type_, scale_zp_shape, {1});
+ fc_compressed = std::make_shared<ov::op::internal::FullyConnectedCompressed>(input,
+ weights_const,
+ bias,
+ scale_const,
+ zp_const);
+ }
+ model_ref = std::make_shared<ov::Model>(ov::OutputVector{fc_compressed}, ov::ParameterVector{input});
+ }
+}
+
+const auto params = std::vector<ConvertFCToCompressedParams>{
+ {ov::element::u8, false, false, ov::PartialShape{10, 2048}, ov::Shape{5, 2048}, ov::Shape{5, 1}},
+ {ov::element::u8, true, false, ov::PartialShape{10, 2048}, ov::Shape{5, 2048}, ov::Shape{5, 1}},
+ // grouped
+ {ov::element::u8, false, true, ov::PartialShape{10, 2048}, ov::Shape{5, 16, 128}, ov::Shape{5, 16, 1}},
+ {ov::element::u8, true, true, ov::PartialShape{10, 2048}, ov::Shape{5, 16, 128}, ov::Shape{5, 16, 1}},
+ // grouped with output channel 1
+ {ov::element::u8, false, true, ov::PartialShape{10, 2048}, ov::Shape{1, 16, 128}, ov::Shape{1, 16, 1}},
+ {ov::element::u8, true, true, ov::PartialShape{10, 2048}, ov::Shape{1, 16, 128}, ov::Shape{1, 16, 1}},
+
+ {ov::element::u4, false, false, ov::PartialShape{-1, 512}, ov::Shape{3, 512}, ov::Shape{3, 1}},
+ {ov::element::u4, true, false, ov::PartialShape{-1, 512}, ov::Shape{3, 512}, ov::Shape{3, 1}},
+ // grouped
+ {ov::element::u4, false, true, ov::PartialShape{-1, 512}, ov::Shape{3, 4, 128}, ov::Shape{3, 4, 1}},
+ {ov::element::u4, true, true, ov::PartialShape{-1, 512}, ov::Shape{3, 4, 128}, ov::Shape{3, 4, 1}},
+ // grouped with output channel 1
+ {ov::element::u4, false, true, ov::PartialShape{-1, 512}, ov::Shape{1, 4, 128}, ov::Shape{1, 4, 1}},
+ {ov::element::u4, true, true, ov::PartialShape{-1, 512}, ov::Shape{1, 4, 128}, ov::Shape{1, 4, 1}},
+};
+} // namespace
+
+INSTANTIATE_TEST_SUITE_P(TransformationTests, ConvertFCToCompressed, ::testing::ValuesIn(params));
diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_batch_gather_matmul_to_compressed.cpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_batch_gather_matmul_to_compressed.cpp
index be1383faca0..a7c2bc0e899 100644
--- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_batch_gather_matmul_to_compressed.cpp
+++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_batch_gather_matmul_to_compressed.cpp
@@ -4,7 +4,6 @@
#include "convert_batch_gather_matmul_to_compressed.hpp"
-#include <algorithm>
#include <cstddef>
#include <memory>
#include <set>
@@ -51,9 +50,7 @@ ov::intel_cpu::ConvertBatchGatherMatmulToBatchGatherMatmulCompressed::
const auto& weights_shape = bgm->get_input_shape(1);
bool batched_weights = weights_shape.size() == 3 && weights_shape[0] > 1;
auto scale_shape = weights_block->get_anchor("mul_const", pattern_map).value().get_shape();
- bool grouped = std::count_if(scale_shape.begin(), scale_shape.end(), [](size_t d) {
- return d > 1;
- }) > (batched_weights ? 2 : 1);
+ bool grouped = scale_shape.size() == weights_shape.size() + 1;
ov::NodeVector result_nodes;
const auto [bgm_input_b, bgm_input_scale, bgm_input_zp] =
diff --git a/src/plugins/intel_cpu/tests/unit/transformations/convert_batch_gather_matmul_to_compressed_test.cpp b/src/plugins/intel_cpu/tests/unit/transformations/convert_batch_gather_matmul_to_compressed_test.cpp
new file mode 100644
index 00000000000..5b952497e37
--- /dev/null
+++ b/src/plugins/intel_cpu/tests/unit/transformations/convert_batch_gather_matmul_to_compressed_test.cpp
@@ -0,0 +1,137 @@
+// Copyright (C) 2018-2026 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#include "transformations/cpu_opset/common/pass/convert_batch_gather_matmul_to_compressed.hpp"
+
+#include <memory>
+
+#include "common_test_utils/ov_test_utils.hpp"
+#include "openvino/core/model.hpp"
+#include "openvino/op/constant.hpp"
+#include "openvino/op/convert.hpp"
+#include "openvino/op/multiply.hpp"
+#include "openvino/op/parameter.hpp"
+#include "openvino/op/reshape.hpp"
+#include "openvino/op/subtract.hpp"
+#include "openvino/pass/manager.hpp"
+#include "transformations/cpu_opset/common/op/batch_gather_matmul.hpp"
+#include "transformations/cpu_opset/common/op/batch_gather_matmul_compressed.hpp"
+
+using namespace testing;
+using namespace ov::pass;
+using namespace ov::intel_cpu;
+
+namespace {
+struct ConvertBGMToCompressedParams {
+ ov::element::Type compressed_type;
+ bool grouped;
+ ov::PartialShape in_shape;
+ ov::Shape wei_shape;
+ ov::Shape scale_zp_shape;
+ ov::Shape index_shape;
+};
+
+class ConvertBGMToCompressed : public testing::WithParamInterface<ConvertBGMToCompressedParams>,
+ public TransformationTestsF {};
+
+TEST_P(ConvertBGMToCompressed, ConvertBGMToCompressedTest) {
+ const auto& params = GetParam();
+ ov::element::Type compressed_type_ = params.compressed_type;
+ bool grouped_ = params.grouped;
+ ov::PartialShape in_shape_ = params.in_shape;
+ ov::Shape wei_shape_ = params.wei_shape;
+ ov::Shape scale_zp_shape_ = params.scale_zp_shape;
+ ov::Shape index_shape_ = params.index_shape;
+ const std::vector<ov::element::Type> supported_activation_types{ov::element::f32};
+ const std::vector<ov::element::Type> supported_weights_types{compressed_type_};
+
+ manager.register_pass<ConvertBatchGatherMatmulToBatchGatherMatmulCompressed>(supported_activation_types,
+ supported_weights_types);
+ auto weight_reshaped_dims = [&]() {
+ std::vector<int64_t> wei_reshaped;
+ for (size_t i = 0; i < wei_shape_.size() - 2; ++i) {
+ wei_reshaped.push_back(static_cast<int64_t>(wei_shape_[i]));
+ }
+ int64_t combined_dim = static_cast<int64_t>(wei_shape_[wei_shape_.size() - 2]) *
+ static_cast<int64_t>(wei_shape_[wei_shape_.size() - 1]);
+ wei_reshaped.push_back(combined_dim);
+ return wei_reshaped;
+ };
+
+ {
+ auto input = std::make_shared<ov::op::v0::Parameter>(ov::element::f32, in_shape_);
+ auto weights_const = ov::op::v0::Constant::create(compressed_type_, wei_shape_, {1});
+ auto wei_convert = std::make_shared<ov::op::v0::Convert>(weights_const, ov::element::f32);
+
+ auto zp_const = ov::op::v0::Constant::create(compressed_type_, scale_zp_shape_, {1});
+ auto zp_convert = std::make_shared<ov::op::v0::Convert>(zp_const, ov::element::f32);
+ auto wei_zp = std::make_shared<ov::op::v1::Subtract>(wei_convert, zp_convert);
+
+ auto scale_const = ov::op::v0::Constant::create(ov::element::f32, scale_zp_shape_, {1});
+ std::shared_ptr<ov::op::Op> wei_scale = std::make_shared<ov::op::v1::Multiply>(wei_zp, scale_const);
+
+ if (grouped_) {
+ std::vector<int64_t> wei_reshaped = weight_reshaped_dims();
+ auto reshape_pattern =
+ ov::op::v0::Constant::create(ov::element::i32, ov::Shape{wei_reshaped.size()}, wei_reshaped);
+ wei_scale = std::make_shared<ov::op::v1::Reshape>(wei_scale, reshape_pattern, false);
+ }
+
+ auto index = ov::op::v0::Constant::create(ov::element::i32, index_shape_, {1});
+
+ auto bgm = std::make_shared<BatchGatherMatmul>(input, wei_scale, index);
+ model = std::make_shared<ov::Model>(ov::OutputVector{bgm}, ov::ParameterVector{input});
+ }
+
+ {
+ auto input = std::make_shared<ov::op::v0::Parameter>(ov::element::f32, in_shape_);
+ auto reshape_dims = wei_shape_;
+ if (grouped_) {
+ std::vector<int64_t> wei_reshaped = weight_reshaped_dims();
+ reshape_dims = ov::Shape(wei_reshaped.begin(), wei_reshaped.end());
+ }
+ auto weights_const = ov::op::v0::Constant::create(compressed_type_, reshape_dims, {1});
+
+ auto scale_zp_shape = scale_zp_shape_;
+ if (grouped_) {
+ scale_zp_shape.pop_back();
+ }
+ auto scale_const = ov::op::v0::Constant::create(ov::element::f32, scale_zp_shape, {1});
+ auto zp_const = ov::op::v0::Constant::create(compressed_type_, scale_zp_shape, {1});
+ auto index = ov::op::v0::Constant::create(ov::element::i32, index_shape_, {1});
+ auto bias = std::make_shared<ov::op::v0::Constant>(ov::element::dynamic, ov::Shape{0});
+ auto bgm_compressed =
+ std::make_shared<BatchGatherMatmulCompressed>(input, weights_const, index, bias, scale_const, zp_const);
+
+ model_ref = std::make_shared<ov::Model>(ov::OutputVector{bgm_compressed}, ov::ParameterVector{input});
+ }
+}
+
+const auto params = std::vector<ConvertBGMToCompressedParams>{
+ {ov::element::u8, false, ov::PartialShape{8, 10, 2048}, ov::Shape{128, 5, 2048}, ov::Shape{128, 5, 1}, {10, 8}},
+ // grouped
+ {ov::element::u8,
+ true,
+ ov::PartialShape{8, 10, 2048},
+ ov::Shape{128, 5, 16, 128},
+ ov::Shape{128, 5, 16, 1},
+ {10, 8}},
+ // grouped with output channel 1
+ {ov::element::u8,
+ true,
+ ov::PartialShape{8, 10, 2048},
+ ov::Shape{128, 1, 16, 128},
+ ov::Shape{128, 1, 16, 1},
+ {10, 8}},
+
+ {ov::element::u4, false, ov::PartialShape{-1, 10, 512}, ov::Shape{32, 5, 512}, ov::Shape{32, 5, 1}, {10, 8}},
+ // grouped
+ {ov::element::u4, true, ov::PartialShape{-1, 10, 512}, ov::Shape{32, 5, 4, 128}, ov::Shape{32, 5, 4, 1}, {10, 8}},
+ // grouped with output channel 1
+ {ov::element::u4, true, ov::PartialShape{-1, 10, 512}, ov::Shape{32, 1, 4, 128}, ov::Shape{32, 1, 4, 1}, {10, 8}},
+};
+
+} // namespace
+
+INSTANTIATE_TEST_SUITE_P(TransformationTests, ConvertBGMToCompressed, ::testing::ValuesIn(params));
diff --git a/src/plugins/intel_gpu/src/plugin/transformations/convert_fc_to_compressed.cpp b/src/plugins/intel_gpu/src/plugin/transformations/convert_fc_to_compressed.cpp
index a912fc273d5..244e28b9176 100644
--- a/src/plugins/intel_gpu/src/plugin/transformations/convert_fc_to_compressed.cpp
+++ b/src/plugins/intel_gpu/src/plugin/transformations/convert_fc_to_compressed.cpp
@@ -49,11 +49,11 @@ ConvertFullyConnectedToFullyConnectedCompressed::ConvertFullyConnectedToFullyCon
}
bool has_transpose = pattern_map.count(transpose_m);
auto scale_shape = pattern_map.at(mul_const_m).get_shape();
- bool grouped = std::count_if(scale_shape.begin(), scale_shape.end(), [](size_t d) { return d > 1; }) > 1;
bool sub_with_convert = (pattern_map.count(sub_with_convert_m) > 0) ? true : false;
auto weight_shape = fc->get_input_shape(1);
bool is_weight_3d = (std::count_if(weight_shape.begin(), weight_shape.end(), [](size_t d) { return d > 1; }) == 3);
+ bool grouped = scale_shape.size() == weight_shape.size() + 1;
auto weight_ptr = ov::as_type_ptr<ov::op::v0::Constant>(pattern_map.at(compressed_weights_m).get_node_shared_ptr());
bool weight_u8 = false;
diff --git a/src/plugins/intel_gpu/tests/unit/transformations/convert_fc_to_compressed_test.cpp b/src/plugins/intel_gpu/tests/unit/transformations/convert_fc_to_compressed_test.cpp
index 1c6cbd6226f..8bcb6114ffa 100644
--- a/src/plugins/intel_gpu/tests/unit/transformations/convert_fc_to_compressed_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/transformations/convert_fc_to_compressed_test.cpp
@@ -111,6 +111,35 @@ TEST_F(TransformationTestsF, ConvertFCToCompressed3) {
}
TEST_F(TransformationTestsF, ConvertFCToCompressed4) {
+ {
+ auto input1 = std::make_shared<ov::op::v0::Parameter>(ov::element::f32, ov::PartialShape{ -1, 16 });
+ auto weights_const = ov::op::v0::Constant::create(ov::element::u8, ov::Shape{ 1, 4, 4 }, { 1 });
+ auto convert = std::make_shared<ov::op::v0::Convert>(weights_const, ov::element::f32);
+ auto zp_const = ov::op::v0::Constant::create(ov::element::f32, ov::Shape{ 1, 4, 1 }, { 1 });
+ auto sub = std::make_shared<ov::op::v1::Subtract>(convert, zp_const);
+ auto scale_const = ov::op::v0::Constant::create(ov::element::f32, ov::Shape{ 1, 4, 1 }, { 1 });
+ auto scale = std::make_shared<ov::op::v1::Multiply>(sub, scale_const);
+ auto reshape_const = ov::op::v0::Constant::create(ov::element::i32, ov::Shape{ 2 }, { -1, 16 });
+ auto reshape = std::make_shared<ov::op::v1::Reshape>(scale, reshape_const, false);
+ auto no_bias = std::make_shared<ov::intel_gpu::op::Placeholder>();
+ auto fc = std::make_shared<ov::intel_gpu::op::FullyConnected>(input1, reshape, no_bias);
+
+ model = std::make_shared<ov::Model>(ov::OutputVector{fc}, ov::ParameterVector{input1});
+ manager.register_pass<ConvertFullyConnectedToFullyConnectedCompressed>();
+ }
+ {
+ auto input1 = std::make_shared<ov::op::v0::Parameter>(ov::element::f32, ov::PartialShape{ -1, 16 });
+ auto weights_const = ov::op::v0::Constant::create(ov::element::u8, ov::Shape{ 1, 16 }, { 1 });
+ auto no_bias = std::make_shared<ov::intel_gpu::op::Placeholder>();
+ auto scale_const = ov::op::v0::Constant::create(ov::element::f32, ov::Shape{ 1, 4 }, { 1 });
+ auto zp_const = ov::op::v0::Constant::create(ov::element::f32, ov::Shape{ 1, 4 }, { 1 });
+ auto fc_compressed = std::make_shared<ov::intel_gpu::op::FullyConnectedCompressed>(input1, weights_const, no_bias, scale_const, zp_const);
+
+ model_ref = std::make_shared<ov::Model>(ov::OutputVector{fc_compressed}, ov::ParameterVector{input1});
+ }
+}
+
+TEST_F(TransformationTestsF, ConvertFCToCompressed5) {
{
auto input1 = std::make_shared<ov::op::v0::Parameter>(ov::element::f32, ov::PartialShape{ -1, 16 });
auto weights_const = ov::op::v0::Constant::create(ov::element::u4, ov::Shape{ 32, 4, 4 }, { 1 });
@@ -140,7 +169,7 @@ TEST_F(TransformationTestsF, ConvertFCToCompressed4) {
}
}
-TEST_F(TransformationTestsF, ConvertFCToCompressed5) {
+TEST_F(TransformationTestsF, ConvertFCToCompressed6) {
{
auto input1 = std::make_shared<ov::op::v0::Parameter>(ov::element::f32, ov::PartialShape{ -1, 16 });
auto weights_const = ov::op::v0::Constant::create(ov::element::u4, ov::Shape{ 4, 4, 32 }, { 1 });
@@ -176,7 +205,7 @@ TEST_F(TransformationTestsF, ConvertFCToCompressed5) {
}
}
-TEST_F(TransformationTestsF, ConvertFCToCompressed6) {
+TEST_F(TransformationTestsF, ConvertFCToCompressed7) {
{
auto input1 = std::make_shared<ov::op::v0::Parameter>(ov::element::f32, ov::PartialShape{ -1, 16 });
auto weights_const = ov::op::v0::Constant::create(ov::element::u4, ov::Shape{ 4, 4, 32 }, { 1 });
@@ -214,7 +243,7 @@ TEST_F(TransformationTestsF, ConvertFCToCompressed6) {
}
}
-TEST_F(TransformationTestsF, ConvertFCToCompressed7) {
+TEST_F(TransformationTestsF, ConvertFCToCompressed8) {
{
auto input1 = std::make_shared<ov::op::v0::Parameter>(ov::element::f16, ov::PartialShape{ -1, 16 });
auto weights_const = ov::op::v0::Constant::create(ov::element::u4, ov::Shape{ 4, 4, 32 }, { 1 });
@@ -332,7 +361,7 @@ bool TestSubgraph::visit_attributes(ov::AttributeVisitor& visitor) {
return true;
}
-TEST_F(TransformationTestsF, ConvertFCToCompressed8) {
+TEST_F(TransformationTestsF, ConvertFCToCompressed9) {
{
auto weights_const = ov::op::v0::Constant::create(ov::element::u4, ov::Shape{ 4, 4, 32 }, { 1 });
auto convert = std::make_shared<ov::op::v0::Convert>(weights_const, ov::element::f16);
@@ -408,7 +437,7 @@ TEST_F(TransformationTestsF, ConvertFCToCompressed8) {
}
}
-TEST_F(TransformationTestsF, ConvertFCToCompressed9) {
+TEST_F(TransformationTestsF, ConvertFCToCompressed10) {
{
auto input1 = std::make_shared<ov::op::v0::Parameter>(ov::element::f16, ov::PartialShape{ -1, 16 });
auto weights_const = ov::op::v0::Constant::create(ov::element::u8, ov::Shape{ 32, 16 }, { 1 });
@@ -435,7 +464,7 @@ TEST_F(TransformationTestsF, ConvertFCToCompressed9) {
}
}
-TEST_F(TransformationTestsF, ConvertFCToCompressed10) {
+TEST_F(TransformationTestsF, ConvertFCToCompressed11) {
{
auto input1 = std::make_shared<ov::op::v0::Parameter>(ov::element::f16, ov::PartialShape{ -1, 16 });
auto weights_const = ov::op::v0::Constant::create(ov::element::u8, ov::Shape{ 32, 16 }, { 1 });