Skip to content

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

[CPU][TEST] Renaming 'makeNgraphFunction' -> 'create_ov_model' (#33995)

Nikolay Shchegolevb30978965a3e
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/augru_cell.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/augru_cell.cpp
index b2a3232937d..2506fcaa70d 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/augru_cell.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/augru_cell.cpp
@@ -94,7 +94,7 @@ protected:
auto augruCellOp =
ov::test::utils::make_augru(paramsOuts, WRB, hiddenSize /*, activations, {}, {}, clip, linearBeforeReset*/);
- function = makeNgraphFunction(netPrecision, params, augruCellOp, "AUGRUCell");
+ function = create_ov_model(netPrecision, params, augruCellOp, "AUGRUCell");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/augru_sequence.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/augru_sequence.cpp
index 516c47b01c2..eb505ee068b 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/augru_sequence.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/augru_sequence.cpp
@@ -126,7 +126,7 @@ protected:
{batchSize}};
auto augruSequenceOp = ov::test::utils::make_augru(paramsOuts, WRB, hiddenSize, true, direction, seqMode);
- function = makeNgraphFunction(netPrecision, params, augruSequenceOp, "augruSequenceOp");
+ function = create_ov_model(netPrecision, params, augruSequenceOp, "augruSequenceOp");
if (seqMode != ov::test::utils::SequenceTestsMode::PURE_SEQ) {
// TODO: ConvertAUGRUSequenceToTensorIterator
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/broadcast.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/broadcast.cpp
index 135dd19c4c6..13089a02b9e 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/broadcast.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/broadcast.cpp
@@ -134,7 +134,7 @@ protected:
}
}
- function = makeNgraphFunction(netPrecision, functionParams, broadcastOp, "Broadcast");
+ function = create_ov_model(netPrecision, functionParams, broadcastOp, "Broadcast");
}
void generate_inputs(const std::vector<ov::Shape>& targetInputStaticShapes) override {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/bitwise_shift.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/bitwise_shift.cpp
index c8c74661932..d6fafc66fae 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/bitwise_shift.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/bitwise_shift.cpp
@@ -128,7 +128,7 @@ void BitwiseShiftLayerCPUTest::SetUp() {
}
auto eltwise = utils::make_eltwise(parameters[0], secondaryInput, eltwiseType);
- function = makeNgraphFunction(netType, parameters, eltwise, "Eltwise");
+ function = create_ov_model(netType, parameters, eltwise, "Eltwise");
}
TEST_P(BitwiseShiftLayerCPUTest, CompareWithRefs) {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/col2im.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/col2im.cpp
index 1251fb63a82..55297061e2d 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/col2im.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/col2im.cpp
@@ -75,7 +75,7 @@ void Col2ImLayerCPUTest::SetUp() {
pads_begin,
pads_end);
ov::ParameterVector params{dataParameter};
- function = makeNgraphFunction(inputPrecision, params, Col2Im, "Col2Im");
+ function = create_ov_model(inputPrecision, params, Col2Im, "Col2Im");
if (inputPrecision == ov::element::bf16) {
rel_threshold = 0.02;
}
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/comparison.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/comparison.cpp
index 8068aaa6b49..4cfebcb68f8 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/comparison.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/comparison.cpp
@@ -76,7 +76,7 @@ void ComparisonLayerCPUTest::SetUp() {
}
const auto comparison_node = ov::test::utils::make_comparison(params[0], secondInput, comparisonType);
- function = makeNgraphFunction(currModelPrc, params, comparison_node, "Comparison");
+ function = create_ov_model(currModelPrc, params, comparison_node, "Comparison");
}
std::string ComparisonLayerCPUTest::getPrimitiveType(const utils::ComparisonTypes& type, ov::element::Type modelType) const {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/conversion.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/conversion.cpp
index 4771e04e4bb..c5a7ec770e4 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/conversion.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/conversion.cpp
@@ -139,7 +139,7 @@ void ConvertCPULayerTest::SetUp() {
}
auto conversion = std::make_shared<ov::op::v0::Convert>(params.front(), outPrc);
- function = makeNgraphFunction(inPrc, params, conversion, "ConversionCPU");
+ function = create_ov_model(inPrc, params, conversion, "ConversionCPU");
// issue 161636
if (special_value == ov::test::SpecialValue::none && outPrc == ov::element::f8e4m3) {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/convolution.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/convolution.cpp
index 77948e98577..2a3908d6feb 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/convolution.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/convolution.cpp
@@ -195,7 +195,7 @@ void ConvolutionLayerCPUTest::SetUp() {
auto convolution = ov::test::utils::make_convolution(inputParams[0], netType, kernel, stride, padBegin,
padEnd, dilation, padType, convOutChannels,
inputGenData.count(1) ? std::make_optional(inputGenData.at(1)) : std::nullopt);
- function = makeNgraphFunction(netType, inputParams, convolution, "Convolution", qinfo);
+ function = create_ov_model(netType, inputParams, convolution, "Convolution", qinfo);
}
TEST_P(ConvolutionLayerCPUTest, CompareWithRefs) {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/convolution_backprop_data.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/convolution_backprop_data.cpp
index d5e1b559d00..6e6e88d3d47 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/convolution_backprop_data.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/convolution_backprop_data.cpp
@@ -155,7 +155,7 @@ std::shared_ptr<ov::Model> DeconvolutionLayerCPUTest::createGraph(const std::vec
outPadding);
}
- return makeNgraphFunction(prec, params, deconv, "DeconvCPU");
+ return create_ov_model(prec, params, deconv, "DeconvCPU");
}
void DeconvolutionLayerCPUTest::SetUp() {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/eltwise.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/eltwise.cpp
index 07ff5b68ac8..9e0e0696fbd 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/eltwise.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/eltwise.cpp
@@ -273,7 +273,7 @@ void EltwiseLayerCPUTest::SetUp() {
}
}
auto eltwise = utils::make_eltwise(parameters[0], secondaryInput, eltwiseType);
- function = makeNgraphFunction(netType, parameters, eltwise, "Eltwise");
+ function = create_ov_model(netType, parameters, eltwise, "Eltwise");
}
std::string EltwiseLayerCPUTest::getPrimitiveType(const utils::EltwiseTypes& eltwise_type,
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/grid_sample.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/grid_sample.cpp
index e15ce4e17f0..3f1495a3098 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/grid_sample.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/grid_sample.cpp
@@ -88,7 +88,7 @@ void GridSampleLayerTestCPU::SetUp() {
params[1]->set_friendly_name("grid");
ov::op::v9::GridSample::Attributes attributes = {alignCorners, interpolateMode, paddingMode};
auto gridSample = std::make_shared<ov::op::v9::GridSample>(params[0], params[1], attributes);
- function = makeNgraphFunction(dataPrecision, params, gridSample, "GridSampleCPU");
+ function = create_ov_model(dataPrecision, params, gridSample, "GridSampleCPU");
}
TEST_P(GridSampleLayerTestCPU, CompareWithRefs) {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/interpolate.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/interpolate.cpp
index 903e14d3716..fe00e1a8fbd 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/interpolate.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/interpolate.cpp
@@ -185,7 +185,7 @@ void InterpolateLayerCPUTest::SetUp() {
interp = std::make_shared<ov::op::v11::Interpolate>(params[0], sizesInput, axesInput, interpAttr);
}
- function = makeNgraphFunction(ngPrc, params, interp, "InterpolateCPU");
+ function = create_ov_model(ngPrc, params, interp, "InterpolateCPU");
ov::pass::Manager m;
m.register_pass<ov::pass::ConvertInterpolate11ToInterpolate4>();
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/logical.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/logical.cpp
index 19264c92772..c5ad5b88959 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/logical.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/logical.cpp
@@ -78,7 +78,7 @@ void LogicalLayerCPUTest::SetUp() {
logical_node = std::make_shared<ov::op::v1::LogicalNot>(params[0]);
}
- function = makeNgraphFunction(prc, params, logical_node, "Logical");
+ function = create_ov_model(prc, params, logical_node, "Logical");
}
std::string LogicalLayerCPUTest::getPrimitiveType(const utils::LogicalTypes& type) const {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/matmul.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/matmul.cpp
index 965dfe472d0..b42663d58f0 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/matmul.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/matmul.cpp
@@ -142,7 +142,7 @@ void MatMulLayerCPUTest::SetUp() {
}
auto matMul = std::make_shared<ov::op::v0::MatMul>(paramOuts[0], matrixB, transpA, transpB);
- function = makeNgraphFunction(netType, params, matMul, cpuNodeType);
+ function = create_ov_model(netType, params, matMul, cpuNodeType);
checkFusingPosition = false;
}
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/mvn.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/mvn.cpp
index 984e5558892..cd57b98a5a2 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/mvn.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/mvn.cpp
@@ -88,7 +88,7 @@ void MvnLayerCPUTest::SetUp() {
configuration.insert(additionalConfig.begin(), additionalConfig.end());
updateSelectedType(getPrimitiveType(), netPrecision, configuration);
- function = makeNgraphFunction(netPrecision, params, mvn, "mvn");
+ function = create_ov_model(netPrecision, params, mvn, "mvn");
}
TEST_P(MvnLayerCPUTest, CompareWithRefs) {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/pooling.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/pooling.cpp
index 2cad4d591e8..74ea6f9ac8f 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/pooling.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/pooling.cpp
@@ -90,7 +90,7 @@ void PoolingLayerCPUTest::SetUp() {
pooling = std::make_shared<ov::op::v1::AvgPool>(poolInput, stride, padBegin, padEnd, kernel, excludePad, roundingType, padType);
}
- function = makeNgraphFunction(inPrc, params, pooling, "PoolingCPU");
+ function = create_ov_model(inPrc, params, pooling, "PoolingCPU");
}
std::string AvgPoolingV14LayerCPUTest::getTestCaseName(const testing::TestParamInfo<poolLayerCpuTestParamsSet>& obj) {
@@ -157,7 +157,7 @@ void AvgPoolingV14LayerCPUTest::SetUp() {
auto pooling = std::make_shared<ov::op::v14::AvgPool>(poolInput, stride, padBegin, padEnd, kernel, excludePad, roundingType, padType);
- function = makeNgraphFunction(inPrc, params, pooling, "PoolingCPU");
+ function = create_ov_model(inPrc, params, pooling, "PoolingCPU");
}
std::string MaxPoolingV8LayerCPUTest::getTestCaseName(
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/reduce.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/reduce.cpp
index f663c8badf2..2afd1528a6c 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/reduce.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/reduce.cpp
@@ -109,7 +109,7 @@ void ReduceCPULayerTest::SetUp() {
}
}
- function = makeNgraphFunction(netPrecision, params, reduce, "Reduce");
+ function = create_ov_model(netPrecision, params, reduce, "Reduce");
if (netPrecision == ov::element::f32 && configuration.count(ov::hint::inference_precision.name()) &&
configuration.at(ov::hint::inference_precision.name()) == ov::element::f16) {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/rms_norm.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/rms_norm.cpp
index 5bfed8e06b0..cf418ea03ea 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/rms_norm.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/rms_norm.cpp
@@ -106,7 +106,7 @@ void RMSNormLayerCPUTest::SetUp() {
inputParams.push_back(scale);
auto rms = std::make_shared<ov::op::internal::RMS>(data, scale, 0.1f);
rms->set_friendly_name("rms");
- function = makeNgraphFunction(inType, inputParams, rms, "rms");
+ function = create_ov_model(inType, inputParams, rms, "rms");
}
TEST_P(RMSNormLayerCPUTest, CompareWithRefs) {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/scaled_attn.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/scaled_attn.cpp
index f255fb49dfc..0e1d576f497 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/scaled_attn.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/scaled_attn.cpp
@@ -93,7 +93,7 @@ void ScaledAttnLayerCPUTest::SetUp() {
}
auto sdp = std::make_shared<ov::opset13::ScaledDotProductAttention>(inputs, is_causal);
sdp->set_friendly_name("mha");
- function = makeNgraphFunction(inType, inputParams, sdp, "SDP");
+ function = create_ov_model(inType, inputParams, sdp, "SDP");
}
void ScaledAttnLayerCPUTest::generate_inputs(const std::vector<ov::Shape>& targetInputStaticShapes) {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/segment_max.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/segment_max.cpp
index 799bc461b5a..9f22ab11503 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/segment_max.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/segment_max.cpp
@@ -108,7 +108,7 @@ void SegmentMaxLayerCPUTest::SetUp() {
segmentMax = std::make_shared<ov::op::v16::SegmentMax>(dataParameter, segmentIdsParameter, fillMode);
}
}
- function = makeNgraphFunction(inputPrecision, params, segmentMax, "SegmentMax");
+ function = create_ov_model(inputPrecision, params, segmentMax, "SegmentMax");
}
TEST_P(SegmentMaxLayerCPUTest, CompareWithRefs) {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/softmax.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/softmax.cpp
index 8ce869baf0f..a635c90bbdd 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/softmax.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/softmax.cpp
@@ -59,7 +59,7 @@ void SoftMaxLayerCPUTest::SetUp() {
const auto softMax = std::make_shared<ov::op::v1::Softmax>(params.at(0), config.axis);
- function = makeNgraphFunction(inType, params, softMax, "SoftMax");
+ function = create_ov_model(inType, params, softMax, "SoftMax");
}
TEST_P(SoftMaxLayerCPUTest, CompareWithRefs) {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/sparse_fill_empty_rows.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/sparse_fill_empty_rows.cpp
index 146aec5ebf0..3f67cb467ce 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/sparse_fill_empty_rows.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/sparse_fill_empty_rows.cpp
@@ -144,7 +144,7 @@ void SparseFillEmptyRowsLayerCPUTest::SetUp() {
sparseFillEmptyRows = std::make_shared<ov::op::v16::SparseFillEmptyRows>(
valuesParameter, denseShapeParameter, indicesParameter, defaultValueParameter);
}
- function = makeNgraphFunction(valuesPrecision, params, sparseFillEmptyRows, "SparseFillEmptyRows");
+ function = create_ov_model(valuesPrecision, params, sparseFillEmptyRows, "SparseFillEmptyRows");
}
TEST_P(SparseFillEmptyRowsLayerCPUTest, CompareWithRefs) {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/string_tensor_pack.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/string_tensor_pack.cpp
index a6561d378bd..5650c06cf29 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/string_tensor_pack.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/string_tensor_pack.cpp
@@ -82,7 +82,7 @@ void StringTensorPackLayerCPUTest::SetUp() {
auto StringTensorPack =
std::make_shared<ov::op::v15::StringTensorPack>(beginsParameter, endsParameter, symbolsParameter);
ov::ParameterVector params{beginsParameter, endsParameter, symbolsParameter};
- function = makeNgraphFunction(ov::element::string, params, StringTensorPack, "StringTensorPack");
+ function = create_ov_model(ov::element::string, params, StringTensorPack, "StringTensorPack");
}
TEST_P(StringTensorPackLayerCPUTest, CompareWithRefs) {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/string_tensor_unpack.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/string_tensor_unpack.cpp
index 244bcf73326..b7bb9ae44ef 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/string_tensor_unpack.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/string_tensor_unpack.cpp
@@ -54,7 +54,7 @@ void StringTensorUnpackLayerCPUTest::SetUp() {
auto dataParameter = std::make_shared<ov::op::v0::Parameter>(ov::element::string, inputDynamicShapes[0]);
auto StringTensorUnpack = std::make_shared<ov::op::v15::StringTensorUnpack>(dataParameter);
ov::ParameterVector params{dataParameter};
- function = makeNgraphFunction(ov::element::string, params, StringTensorUnpack, "StringTensorUnpack");
+ function = create_ov_model(ov::element::string, params, StringTensorUnpack, "StringTensorUnpack");
}
TEST_P(StringTensorUnpackLayerCPUTest, CompareWithRefs) {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/concat.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/concat.cpp
index 688f3063a20..caa51bea5b6 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/concat.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/concat.cpp
@@ -76,7 +76,7 @@ protected:
}
auto concat = std::make_shared<ov::op::v0::Concat>(paramsOuts, axis);
- function = makeNgraphFunction(netPrecision, params, concat, "ConcatCPU");
+ function = create_ov_model(netPrecision, params, concat, "ConcatCPU");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/deformable_convolution.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/deformable_convolution.cpp
index 2b310a46efc..fe24cdaf82c 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/deformable_convolution.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/deformable_convolution.cpp
@@ -192,7 +192,7 @@ protected:
withBilinearInterpolationPad);
}
- function = makeNgraphFunction(netPrecision, parameters, deformable_conv, "deformable_convolution");
+ function = create_ov_model(netPrecision, parameters, deformable_conv, "deformable_convolution");
if (netPrecision == ov::element::f32) {
abs_threshold = 5e-6;
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/depth_to_space.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/depth_to_space.cpp
index 9d7250bc739..d77fee810c4 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/depth_to_space.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/depth_to_space.cpp
@@ -64,7 +64,7 @@ protected:
params.push_back(std::make_shared<ov::op::v0::Parameter>(inType, shape));
}
auto d2s = std::make_shared<ov::op::v0::DepthToSpace>(params[0], mode, blockSize);
- function = makeNgraphFunction(inType, params, d2s, "DepthToSpace");
+ function = create_ov_model(inType, params, d2s, "DepthToSpace");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/extract_image_patches.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/extract_image_patches.cpp
index 820e435162b..ef781a14d1e 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/extract_image_patches.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/extract_image_patches.cpp
@@ -53,7 +53,7 @@ protected:
}
auto extImgPatches =
std::make_shared<ov::op::v3::ExtractImagePatches>(params[0], kernelSize, strides, rates, padType);
- function = makeNgraphFunction(inputPrecision, params, extImgPatches, "ExtractImagePatches");
+ function = create_ov_model(inputPrecision, params, extImgPatches, "ExtractImagePatches");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/eye.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/eye.cpp
index f71fb416660..6a58e42eb2f 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/eye.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/eye.cpp
@@ -91,11 +91,11 @@ protected:
auto eyelikeBatchShape =
std::make_shared<ov::op::v9::Eye>(rowsPar, colsPar, diagPar, batchShapePar, ov::element::i32);
eyelikeBatchShape->get_rt_info() = getCPUInfo();
- return makeNgraphFunction(ov::element::i32, inputParams, eyelikeBatchShape, "Eye");
+ return create_ov_model(ov::element::i32, inputParams, eyelikeBatchShape, "Eye");
} else {
auto eyelikePure = std::make_shared<ov::op::v9::Eye>(rowsPar, colsPar, diagPar, ov::element::i32);
eyelikePure->get_rt_info() = getCPUInfo();
- return makeNgraphFunction(ov::element::i32, inputParams, eyelikePure, "Eye");
+ return create_ov_model(ov::element::i32, inputParams, eyelikePure, "Eye");
}
}
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/fake_quantize.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/fake_quantize.cpp
index 911b1e9ed25..b44de284e4c 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/fake_quantize.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/fake_quantize.cpp
@@ -99,7 +99,7 @@ protected:
selectedType = getPrimitiveType() + "_" + inPrec.get_type_name();
}
- function = makeNgraphFunction(inPrec, params, fq, "FakeQuantizeCPU");
+ function = create_ov_model(inPrec, params, fq, "FakeQuantizeCPU");
if (inPrec == ov::element::f32) {
abs_threshold = 1e-4;
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/gather.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/gather.cpp
index d35e976f86f..c97b97b802a 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/gather.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/gather.cpp
@@ -104,7 +104,7 @@ protected:
gatherNode = std::make_shared<ov::op::v8::Gather>(params[0], params[1], params[2], batchDims);
}
- function = makeNgraphFunction(netPrecision, params, gatherNode, "GatherCPU");
+ function = create_ov_model(netPrecision, params, gatherNode, "GatherCPU");
}
void generate_inputs(const std::vector<ov::Shape>& targetInputStaticShapes) override {
@@ -192,7 +192,7 @@ protected:
ov::op::v0::Constant::create(intInputsPrecision, ov::Shape({1}), {axis}),
batchDims);
- function = makeNgraphFunction(netPrecision, params, gatherNode, "GatherCPU");
+ function = create_ov_model(netPrecision, params, gatherNode, "GatherCPU");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/gather_elements.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/gather_elements.cpp
index 35b7392ec7b..2fcc5399d2b 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/gather_elements.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/gather_elements.cpp
@@ -87,7 +87,7 @@ protected:
};
auto gather = std::make_shared<ov::op::v6::GatherElements>(params[0], params[1], axis);
- function = makeNgraphFunction(dPrecision, params, gather, "GatherElements");
+ function = create_ov_model(dPrecision, params, gather, "GatherElements");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/group_convolution.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/group_convolution.cpp
index fad8037ec15..1894958bcca 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/group_convolution.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/group_convolution.cpp
@@ -184,7 +184,7 @@ protected:
padType,
convOutChannels,
numGroups);
- function = makeNgraphFunction(netType, params, groupConv, "groupConvolution");
+ function = create_ov_model(netType, params, groupConv, "groupConvolution");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/group_convolution_backprop_data.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/group_convolution_backprop_data.cpp
index 1fc57dfca14..87d40d5353c 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/group_convolution_backprop_data.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/group_convolution_backprop_data.cpp
@@ -206,7 +206,7 @@ public:
outPadding);
}
- return makeNgraphFunction(prec, params, deconv, "GroupDeconvCPU");
+ return create_ov_model(prec, params, deconv, "GroupDeconvCPU");
}
protected:
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/gru_cell.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/gru_cell.cpp
index 7dae725c79e..51679efcae5 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/gru_cell.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/gru_cell.cpp
@@ -92,7 +92,7 @@ protected:
auto gruCellOp =
ov::test::utils::make_gru(paramsOuts, WRB, hiddenSize, activations, {}, {}, clip, linearBeforeReset);
- function = makeNgraphFunction(netPrecision, params, gruCellOp, "GRUCell");
+ function = create_ov_model(netPrecision, params, gruCellOp, "GRUCell");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/gru_sequence.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/gru_sequence.cpp
index 27f669d6688..0aa2e1b89b8 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/gru_sequence.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/gru_sequence.cpp
@@ -128,7 +128,7 @@ protected:
direction,
seqMode);
- function = makeNgraphFunction(netPrecision, params, gruSequenceOp, "gruSequenceOp");
+ function = create_ov_model(netPrecision, params, gruSequenceOp, "gruSequenceOp");
if (seqMode != ov::test::utils::SequenceTestsMode::PURE_SEQ) {
ov::pass::Manager manager;
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/x64/matmul.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/x64/matmul.cpp
index 66a3bdb5de3..dad68b849b0 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/x64/matmul.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/x64/matmul.cpp
@@ -1281,7 +1281,7 @@ class MatMul3DWeightLayerCPUTest : public MatMulLayerCPUTest {
}
auto matMul = std::make_shared<ov::op::v0::MatMul>(paramOuts[0], matrixB, transpA, transpB);
- function = makeNgraphFunction(netType, params, matMul, cpuNodeType);
+ function = create_ov_model(netType, params, matMul, cpuNodeType);
checkFusingPosition = false;
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/lrn.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/lrn.cpp
index c8fae9e2e15..8c2ca6894e3 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/lrn.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/lrn.cpp
@@ -47,7 +47,7 @@ protected:
}
auto axesNode = ov::op::v0::Constant::create(ov::element::i32, { axes.size() }, axes);
auto lrn = std::make_shared<ov::op::v0::LRN>(params[0], axesNode, alpha, beta, bias, size);
- function = makeNgraphFunction(inputPrecision, params, lrn, "LRN");
+ function = create_ov_model(inputPrecision, params, lrn, "LRN");
if (inputPrecision == ov::element::f32) {
abs_threshold = 5e-3;
}
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/lstm_cell.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/lstm_cell.cpp
index b5a8187e79c..a34458065fc 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/lstm_cell.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/lstm_cell.cpp
@@ -88,7 +88,7 @@ protected:
std::vector<ov::Shape> WRB = {{4 * hiddenSize, inputSize}, {4 * hiddenSize, hiddenSize}, {4 * hiddenSize}};
auto lstmCellOp = utils::make_lstm(paramsOuts, WRB, hiddenSize, activations, {}, {}, clip);
- function = makeNgraphFunction(netPrecision, params, lstmCellOp, "LSTMCell");
+ function = create_ov_model(netPrecision, params, lstmCellOp, "LSTMCell");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/lstm_sequence.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/lstm_sequence.cpp
index 5f7600f4b12..d1e3ff65938 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/lstm_sequence.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/lstm_sequence.cpp
@@ -134,7 +134,7 @@ protected:
seqMode,
WRB_range);
- function = makeNgraphFunction(netPrecision, params, lstmSequenceOp, "lstmSequenceOp");
+ function = create_ov_model(netPrecision, params, lstmSequenceOp, "lstmSequenceOp");
if (seqMode != ov::test::utils::SequenceTestsMode::PURE_SEQ) {
ov::pass::Manager manager;
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/matmul_sparse.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/matmul_sparse.cpp
index 6d4e1b0a125..53ba29a55e4 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/matmul_sparse.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/matmul_sparse.cpp
@@ -172,7 +172,7 @@ protected:
auto weiData = generateSparseVector(ov::shape_size(inShapeB.get_shape()), weiSparseRate);
auto matMul = makeMatMulRelaxed(params[0], inShapeB, weiType, transpA, transpB, weiData);
- function = makeNgraphFunction(element::f32, params, matMul, cpuNodeType);
+ function = create_ov_model(element::f32, params, matMul, cpuNodeType);
checkFusingPosition = false;
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/non_max_suppression.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/non_max_suppression.cpp
index 631ef8045ae..edb025839c2 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/non_max_suppression.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/non_max_suppression.cpp
@@ -145,7 +145,7 @@ protected:
auto nms = std::make_shared<ov::op::v9::NonMaxSuppression>(params[0], params[1], maxOutBoxesPerClassNode, iouThrNode, scoreThrNode,
softNmsSigmaNode, boxEncoding, sortResDescend, outType);
- function = makeNgraphFunction(paramsPrec, params, nms, "NMS");
+ function = create_ov_model(paramsPrec, params, nms, "NMS");
}
private:
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/nonzero.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/nonzero.cpp
index a3b7a722f7a..93975cad0d4 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/nonzero.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/nonzero.cpp
@@ -79,7 +79,7 @@ protected:
// real runtime precision is still U8
selectedType = makeSelectedTypeStr("ref", netType == ElementType::u8 ? ElementType::i8 : netType);
inputParams[0]->set_friendly_name("input");
- function = makeNgraphFunction(netType, inputParams, nonZero, "NonZero");
+ function = create_ov_model(netType, inputParams, nonZero, "NonZero");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/normalize.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/normalize.cpp
index 1e47686558c..a9dd26bbc0c 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/normalize.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/normalize.cpp
@@ -66,7 +66,7 @@ protected:
auto normAxes = std::make_shared<ov::op::v0::Constant>(ov::element::i64, ov::Shape{axes.size()}, axes);
auto normalize = std::make_shared<ov::op::v0::NormalizeL2>(params[0], normAxes, eps, epsMode);
- function = makeNgraphFunction(inType, params, normalize, "Normalize");
+ function = create_ov_model(inType, params, normalize, "Normalize");
if (inType == ov::element::bf16) {
abs_threshold = 1e-1f;
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/one_hot.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/one_hot.cpp
index 98e8dc0404c..7cc825dd0e7 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/one_hot.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/one_hot.cpp
@@ -144,7 +144,7 @@ protected:
auto off_value_const = std::make_shared<ov::op::v0::Constant>(outType, ov::Shape{ }, OffValue);
auto oneHot =
std::make_shared<ov::op::v16::OneHot>(params[0], depth, on_value_const, off_value_const, Axis, Mode);
- return makeNgraphFunction(ov::element::i32, params, oneHot, "OneHot");
+ return create_ov_model(ov::element::i32, params, oneHot, "OneHot");
}
void generateDepth() {
testing::internal::Random random(time(nullptr));
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/pad.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/pad.cpp
index 75dfabc7ad8..28aeb1c6ab4 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/pad.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/pad.cpp
@@ -127,7 +127,7 @@ protected:
pad = std::make_shared<ov::op::v12::Pad>(params[0], padsBeginNode, padsEndNode, argPadValueNode, padMode);
}
- function = makeNgraphFunction(inType, params, pad, "Pad");
+ function = create_ov_model(inType, params, pad, "Pad");
}
std::vector<int64_t> padsBegin; // padsBegin
std::vector<int64_t> padsEnd; // padsEnd
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/region_yolo.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/region_yolo.cpp
index a428cd6980e..48a97381f1a 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/region_yolo.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/region_yolo.cpp
@@ -74,7 +74,7 @@ protected:
attributes.start_axis,
attributes.end_axis);
- function = makeNgraphFunction(inPrc, paramRegionYolo, region_yolo, "RegionYolo");
+ function = create_ov_model(inPrc, paramRegionYolo, region_yolo, "RegionYolo");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/rnn_cell.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/rnn_cell.cpp
index 66c0307cec2..90317b95fda 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/rnn_cell.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/rnn_cell.cpp
@@ -82,7 +82,7 @@ protected:
std::vector<ov::Shape> WRB = {{hiddenSize, inputSize}, {hiddenSize, hiddenSize}, {hiddenSize}};
auto rnnCellOp = utils::make_rnn(paramsOuts, WRB, hiddenSize, activations, {}, {}, clip);
- function = makeNgraphFunction(netPrecision, params, rnnCellOp, "RNNCellCPU");
+ function = create_ov_model(netPrecision, params, rnnCellOp, "RNNCellCPU");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/rnn_sequence.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/rnn_sequence.cpp
index a84798862eb..7ff8220b86b 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/rnn_sequence.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/rnn_sequence.cpp
@@ -116,7 +116,7 @@ protected:
{batchSize}};
auto rnn_sequence =
utils::make_rnn(paramsOuts, WRB, hiddenSize, activations, {}, {}, clip, true, direction, seqMode);
- function = makeNgraphFunction(netPrecision, params, rnn_sequence, "rnnSequence");
+ function = create_ov_model(netPrecision, params, rnn_sequence, "rnnSequence");
if (seqMode != ov::test::utils::SequenceTestsMode::PURE_SEQ) {
ov::pass::Manager manager;
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/roi_pooling.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/roi_pooling.cpp
index 688401fb910..2e37a3ac946 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/roi_pooling.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/roi_pooling.cpp
@@ -200,7 +200,7 @@ protected:
}
ov::ResultVector results{std::make_shared<ov::op::v0::Result>(roi_pooling)};
- function = makeNgraphFunction(netPrecision, params, roi_pooling, "ROIPooling");
+ function = create_ov_model(netPrecision, params, roi_pooling, "ROIPooling");
functionRefs = function->clone();
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/roialign.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/roialign.cpp
index 43c48191055..78dfde44a2a 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/roialign.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/roialign.cpp
@@ -146,7 +146,7 @@ protected:
}
ov::ParameterVector params{ float_params[0], float_params[1], int_param };
- function = makeNgraphFunction(inputPrecision, params, roialign, "ROIAlign");
+ function = create_ov_model(inputPrecision, params, roialign, "ROIAlign");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/scatter_ND_update.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/scatter_ND_update.cpp
index e249fd059c4..d677bc6e604 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/scatter_ND_update.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/scatter_ND_update.cpp
@@ -113,7 +113,7 @@ protected:
auto scatter = std::make_shared<ov::op::v3::ScatterNDUpdate>(dataParams[0], indicesParam, dataParams[1]);
ov::ParameterVector allParams{dataParams[0], indicesParam, dataParams[1]};
- function = makeNgraphFunction(inputPrecision, allParams, scatter, "ScatterNDUpdateLayerCPUTest");
+ function = create_ov_model(inputPrecision, allParams, scatter, "ScatterNDUpdateLayerCPUTest");
if (exceptionExpected) {
set_callback_exception([](const std::exception& exp) {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/scatter_elements_update.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/scatter_elements_update.cpp
index ba5dacc82d6..b70050b9b68 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/scatter_elements_update.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/scatter_elements_update.cpp
@@ -113,7 +113,7 @@ protected:
std::make_shared<ov::op::v3::ScatterElementsUpdate>(dataParams[0], indicesParam, dataParams[1], axisNode);
ov::ParameterVector allParams{dataParams[0], indicesParam, dataParams[1]};
- function = makeNgraphFunction(inputPrecision, allParams, scatter, "ScatterElementsUpdateLayerCPUTest");
+ function = create_ov_model(inputPrecision, allParams, scatter, "ScatterElementsUpdateLayerCPUTest");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/scatter_update.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/scatter_update.cpp
index 7385398f770..c18784fcf17 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/scatter_update.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/scatter_update.cpp
@@ -73,7 +73,7 @@ protected:
auto axis_node = ov::op::v0::Constant::create(idxPrecision, {}, {axis});
auto scatter = std::make_shared<ov::op::v3::ScatterUpdate>(params[0], indicesNode, params[1], axis_node);
- function = makeNgraphFunction(inputPrecision, params, scatter, "ScatterUpdateLayerCPUTest");
+ function = create_ov_model(inputPrecision, params, scatter, "ScatterUpdateLayerCPUTest");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/select.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/select.cpp
index f27bb403fb1..295cb538c9b 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/select.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/select.cpp
@@ -57,7 +57,7 @@ protected:
}
auto select = std::make_shared<ov::op::v1::Select>(parameters[0], parameters[1], parameters[2], broadcast);
- function = makeNgraphFunction(precision, parameters, select, "Eltwise");
+ function = create_ov_model(precision, parameters, select, "Eltwise");
}
void generate_inputs(const std::vector<ov::Shape>& targetInputStaticShapes) override {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/shape_ops.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/shape_ops.cpp
index 202768cbd11..5dab9839dd6 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/shape_ops.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/shape_ops.cpp
@@ -184,7 +184,7 @@ protected:
}
}
- function = makeNgraphFunction(prc, inputs, shapeOps, "ShapeOpsCPUTest");
+ function = create_ov_model(prc, inputs, shapeOps, "ShapeOpsCPUTest");
}
private:
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/shapeof.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/shapeof.cpp
index 41b6eb83b9b..5025b1d5f16 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/shapeof.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/shapeof.cpp
@@ -60,7 +60,7 @@ protected:
auto shapeOf = std::make_shared<ov::op::v3::ShapeOf>(params.front(), ov::element::i32);
- function = makeNgraphFunction(netPrecision, params, shapeOf, "ShapeOf");
+ function = create_ov_model(netPrecision, params, shapeOf, "ShapeOf");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/shuffle_channels.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/shuffle_channels.cpp
index e67d8671827..903e60a93ed 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/shuffle_channels.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/shuffle_channels.cpp
@@ -55,7 +55,7 @@ protected:
params.push_back(std::make_shared<ov::op::v0::Parameter>(inType, shape));
}
auto shuffleChannels = std::make_shared<ov::op::v0::ShuffleChannels>(params[0], axis, group);
- function = makeNgraphFunction(inType, params, shuffleChannels, "ShuffleChannels");
+ function = create_ov_model(inType, params, shuffleChannels, "ShuffleChannels");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/slice.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/slice.cpp
index 75998026f08..74b481b510b 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/slice.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/slice.cpp
@@ -150,7 +150,7 @@ protected:
secondaryInputType);
}
- function = makeNgraphFunction(netPrecision, params, sliceNode, "Slice8");
+ function = create_ov_model(netPrecision, params, sliceNode, "Slice8");
}
Slice8SpecificParams sliceParams;
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/slice_scatter.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/slice_scatter.cpp
index accf7b310f8..407422f9422 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/slice_scatter.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/slice_scatter.cpp
@@ -164,7 +164,7 @@ protected:
secondaryInputType);
}
- function = makeNgraphFunction(netPrecision, params, sliceNode, "SliceScatter");
+ function = create_ov_model(netPrecision, params, sliceNode, "SliceScatter");
}
SliceScatterSpecificParams sliceParams;
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/space_to_batch.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/space_to_batch.cpp
index 68090db6104..8e7938faef4 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/space_to_batch.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/space_to_batch.cpp
@@ -123,7 +123,7 @@ protected:
params.push_back(padsEndParam);
auto s2b = std::make_shared<ov::op::v1::SpaceToBatch>(params[0], in2, in3, in4);
- function = makeNgraphFunction(inType, params, s2b, "SpaceToBatchCPU");
+ function = create_ov_model(inType, params, s2b, "SpaceToBatchCPU");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/space_to_depth.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/space_to_depth.cpp
index 3630ebcc242..fc32d04336f 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/space_to_depth.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/space_to_depth.cpp
@@ -61,7 +61,7 @@ protected:
params.push_back(std::make_shared<ov::op::v0::Parameter>(inType, shape));
}
auto d2s = std::make_shared<ov::op::v0::SpaceToDepth>(params[0], mode, blockSize);
- function = makeNgraphFunction(inType, params, d2s, "SpaceToDepthCPU");
+ function = create_ov_model(inType, params, d2s, "SpaceToDepthCPU");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/strided_slice.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/strided_slice.cpp
index a28c2e7ac3f..6739ca764cb 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/strided_slice.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/strided_slice.cpp
@@ -144,7 +144,7 @@ protected:
ssParams.shrinkAxisMask,
ssParams.ellipsisAxisMask);
- function = makeNgraphFunction(inType, params, ss, "StridedSlice");
+ function = create_ov_model(inType, params, ss, "StridedSlice");
}
StridedSliceParams ssParams;
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/tile.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/tile.cpp
index b6ee6300896..6be9c5c6ae5 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/tile.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/tile.cpp
@@ -90,7 +90,7 @@ protected:
} else {
tileNode = std::make_shared<ov::op::v0::Tile>(functionParams[0], functionParams[1]);
}
- function = makeNgraphFunction(netPrecision, functionParams, tileNode, "CPUTile");
+ function = create_ov_model(netPrecision, functionParams, tileNode, "CPUTile");
}
void generate_inputs(const std::vector<ov::Shape>& targetInputStaticShapes) override {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/unique.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/unique.cpp
index 5fcb1353fbb..dcf0881294d 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/unique.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/unique.cpp
@@ -99,7 +99,7 @@ protected:
sorted);
}
- function = makeNgraphFunction(modelPrecision, params, uniqueNode, "UniqueCPU");
+ function = create_ov_model(modelPrecision, params, uniqueNode, "UniqueCPU");
}
void generate_inputs(const std::vector<ov::Shape>& targetInputStaticShapes) override {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/arm/conv_fq.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/arm/conv_fq.cpp
index ff1bdca0c09..12cce29a13b 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/arm/conv_fq.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/arm/conv_fq.cpp
@@ -120,7 +120,7 @@ protected:
auto multiply_mm = std::make_shared<op::v1::Multiply>(convert_mm, op::v0::Constant::create(inputPrecision, {1, 1}, {0.1}));
const auto matMul = std::make_shared<ov::op::v0::MatMul>(fq_after, multiply_mm, false, false);
- function = makeNgraphFunction(inputPrecision, input_params, matMul, "ConvFQ");
+ function = create_ov_model(inputPrecision, input_params, matMul, "ConvFQ");
}
void generate_inputs(const std::vector<ov::Shape>& targetInputStaticShapes) override {
inputs.clear();
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/arm/convert_reduce_multi_axis.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/arm/convert_reduce_multi_axis.cpp
index 05c53f56978..312e067e0b0 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/arm/convert_reduce_multi_axis.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/arm/convert_reduce_multi_axis.cpp
@@ -55,7 +55,7 @@ protected:
std::make_shared<ov::op::v0::Constant>(ov::element::Type_t::i64, ov::Shape(shapeAxes), axes));
const auto reduce = utils::make_reduce(params[0], reductionAxesNode, keepDims, reductionType);
- function = makeNgraphFunction(ElementType::f32, params, reduce, "Reduce");
+ function = create_ov_model(ElementType::f32, params, reduce, "Reduce");
}
private:
utils::ReductionType reductionType;
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/classes/conv_maxpool_activ.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/classes/conv_maxpool_activ.cpp
index a2f88ca6b5a..b986dc46819 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/classes/conv_maxpool_activ.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/classes/conv_maxpool_activ.cpp
@@ -68,7 +68,7 @@ void ConvPoolActivTest::SetUp() {
#else
selectedType = makeSelectedTypeStr(getPrimitiveType(), element::f32);
#endif
- function = makeNgraphFunction(element::f32, inputParams, pooling, "ConvPoolActiv");
+ function = create_ov_model(element::f32, inputParams, pooling, "ConvPoolActiv");
}
bool ConvPoolActivTest::primTypeCheck(std::string primType) const {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/classes/matmul_weights_decompression.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/classes/matmul_weights_decompression.cpp
index 247d1137b58..aa3dbe62005 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/classes/matmul_weights_decompression.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/classes/matmul_weights_decompression.cpp
@@ -59,7 +59,7 @@ std::shared_ptr<ov::Model> MatmulWeightsDecompression::initSubgraph(const ov::Pa
decompression_subtract_type,
reshape_on_decompression);
auto matMul = std::make_shared<ov::op::v0::MatMul>(params[0], weights_subgraph);
- return makeNgraphFunction(data_precision, params, matMul, "MatmulWeightsDecompression");
+ return create_ov_model(data_precision, params, matMul, "MatmulWeightsDecompression");
}
void MatmulWeightsDecompression::SetUp() {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/align_matmul_input_ranks.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/align_matmul_input_ranks.cpp
index 0a2ffb1d86f..6ec7bbab534 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/align_matmul_input_ranks.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/align_matmul_input_ranks.cpp
@@ -54,7 +54,7 @@ protected:
std::make_shared<ov::op::v0::Parameter>(ngPrec, inShapes.second)};
const auto matMul = std::make_shared<ov::op::v0::MatMul>(inputParams[0], inputParams[1], false, false);
- function = makeNgraphFunction(ngPrec, inputParams, matMul, "AlignMatMulInputRanks");
+ function = create_ov_model(ngPrec, inputParams, matMul, "AlignMatMulInputRanks");
}
int expectedNumOfReshapes = 0;
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/fullyconnected_strided_inputs_outputs.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/fullyconnected_strided_inputs_outputs.cpp
index f67a7ca8535..731ed47ada0 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/fullyconnected_strided_inputs_outputs.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/fullyconnected_strided_inputs_outputs.cpp
@@ -67,7 +67,7 @@ protected:
const auto fcConcatAxis = rank == 3 ? 1 : 0;
const auto concatMatMuls = std::make_shared<ov::op::v0::Concat>(ov::NodeVector{fc1, fc2}, fcConcatAxis);
- function = makeNgraphFunction(netPrecision, params, concatMatMuls, "FullyConnectedStridedInputsOutputs");
+ function = create_ov_model(netPrecision, params, concatMatMuls, "FullyConnectedStridedInputsOutputs");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/input_noreorder_eltwise_bf16.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/input_noreorder_eltwise_bf16.cpp
index 2ff0adc5c0c..9139ea9f44b 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/input_noreorder_eltwise_bf16.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/input_noreorder_eltwise_bf16.cpp
@@ -34,7 +34,7 @@ protected:
auto eltwise = ov::test::utils::make_eltwise(input[0], secondaryInput, eltwiseType);
- function = makeNgraphFunction(netPrecision, input, eltwise, "Eltwise");
+ function = create_ov_model(netPrecision, input, eltwise, "Eltwise");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/matmul_decompress_convert.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/matmul_decompress_convert.cpp
index 82dec4d9f14..09aa78e391f 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/matmul_decompress_convert.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/matmul_decompress_convert.cpp
@@ -208,7 +208,7 @@ protected:
auto matMul = std::make_shared<ov::op::v0::MatMul>(params[0], inputB, transpA, transpB);
- function = CPUTestsBase::makeNgraphFunction(netType, params, matMul, cpuNodeType);
+ function = CPUTestsBase::create_ov_model(netType, params, matMul, cpuNodeType);
}
virtual void check_execution_graph() {
@@ -471,7 +471,7 @@ protected:
auto concat = std::make_shared<ov::op::v0::Concat>(ov::NodeVector{matMul0, matMul1}, 0);
- function = CPUTestsBase::makeNgraphFunction(netType, params, concat, cpuNodeType);
+ function = CPUTestsBase::create_ov_model(netType, params, concat, cpuNodeType);
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/matmul_strided_inputs_outputs.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/matmul_strided_inputs_outputs.cpp
index 067af744f4a..d0bce5b726b 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/matmul_strided_inputs_outputs.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/matmul_strided_inputs_outputs.cpp
@@ -60,7 +60,7 @@ protected:
const auto concatMatMuls = std::make_shared<ov::op::v0::Concat>(ov::NodeVector{matMul1, matMul2}, 2 /* 3rd axis */);
ov::ParameterVector inputParams = {splitInputParams[0], concatInputParams[0], concatInputParams[1], matmulInputParams[0]};
- function = makeNgraphFunction(ngPrec, inputParams, concatMatMuls, "MatmulStridedInputsOutputs");
+ function = create_ov_model(ngPrec, inputParams, concatMatMuls, "MatmulStridedInputsOutputs");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/reshape_fc.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/reshape_fc.cpp
index ed81c882a5e..17eab3f9381 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/reshape_fc.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/reshape_fc.cpp
@@ -72,7 +72,7 @@ protected:
auto weight = std::make_shared<ov::op::v0::Constant>(tensor);
auto matMul = std::make_shared<ov::op::v0::MatMul>(reshape, weight, false, false);
- function = makeNgraphFunction(prc, params, matMul, "ReshapeFcModel");
+ function = create_ov_model(prc, params, matMul, "ReshapeFcModel");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/shapeof_any_layout.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/shapeof_any_layout.cpp
index 4145871ad33..9046e792ae2 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/shapeof_any_layout.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/shapeof_any_layout.cpp
@@ -92,7 +92,7 @@ protected:
auto shapeOf = std::make_shared<ov::op::v3::ShapeOf>(eltwise, ov::element::i32);
- function = makeNgraphFunction(netPrecision, params, shapeOf, "ShapeOf");
+ function = create_ov_model(netPrecision, params, shapeOf, "ShapeOf");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/split_matmul_concat.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/split_matmul_concat.cpp
index b0ad91579cc..bc8feaa7482 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/split_matmul_concat.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/common/split_matmul_concat.cpp
@@ -109,7 +109,7 @@ protected:
auto concat = std::make_shared<ov::op::v0::Concat>(ov::OutputVector{matMul, split->output(1)}, 0);
- function = CPUTestsBase::makeNgraphFunction(ElementType::f32, params, concat, "FullyConnected");
+ function = CPUTestsBase::create_ov_model(ElementType::f32, params, concat, "FullyConnected");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/bf16_convert_saturation.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/bf16_convert_saturation.cpp
index 4bbef3e5490..755cfbf44f3 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/bf16_convert_saturation.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/bf16_convert_saturation.cpp
@@ -74,7 +74,7 @@ protected:
auto conv =
std::make_shared<ov::op::v1::Convolution>(select, conv_filter, strides, pads_begin, pads_end, dilations);
- function = makeNgraphFunction(ElementType::f32, parameters, conv, "Eltwise");
+ function = create_ov_model(ElementType::f32, parameters, conv, "Eltwise");
configuration.insert({ov::hint::inference_precision(ov::element::bf16)});
}
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/conv_sum_broadcast.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/conv_sum_broadcast.cpp
index 5835237cd94..04182242203 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/conv_sum_broadcast.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/conv_sum_broadcast.cpp
@@ -123,7 +123,7 @@ public:
selectedType = "?";
- function = makeNgraphFunction(getNetType(), inputParams, sum, "ConvolutionSumBroadcast");
+ function = create_ov_model(getNetType(), inputParams, sum, "ConvolutionSumBroadcast");
targetDevice = ov::test::utils::DEVICE_CPU;
if (!configuration.count(ov::intel_cpu::snippets_mode.name())) {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/conv_u8s8f32.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/conv_u8s8f32.cpp
index 966f89f0ea3..06413ef3def 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/conv_u8s8f32.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/conv_u8s8f32.cpp
@@ -86,7 +86,7 @@ public:
auto result = std::make_shared<ov::op::v0::Result>(conv);
- function = makeNgraphFunction(netPrecision, params, conv, "Convolution");
+ function = create_ov_model(netPrecision, params, conv, "Convolution");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/convert_fq_rnn_to_quantized_rnn.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/convert_fq_rnn_to_quantized_rnn.cpp
index aa1116808cd..9587083123c 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/convert_fq_rnn_to_quantized_rnn.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/convert_fq_rnn_to_quantized_rnn.cpp
@@ -177,7 +177,7 @@ protected:
if (maxSeqLen > 1)
abs_threshold = 0.05; // RNN int8 computation is expected to affect the accuracy, especially when sequence_length > 1
- function = makeNgraphFunction(ngPrec, inputParams, rnnCellOp, "ConvertFqRnnToQuantizedRnn");
+ function = create_ov_model(ngPrec, inputParams, rnnCellOp, "ConvertFqRnnToQuantizedRnn");
}
private:
static const size_t cellIdx = 2;
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/fq_fused_with_ss.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/fq_fused_with_ss.cpp
index 8705bc6f55d..20024e6d933 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/fq_fused_with_ss.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/fq_fused_with_ss.cpp
@@ -51,7 +51,7 @@ protected:
auto fq = ov::test::utils::make_fake_quantize(sum, ov::element::f32, 256, {}, {-8.0f}, {7.0f}, {-8.0f}, {7.0f});
ov::ParameterVector inputParams = {mmParams[0]};
- function = makeNgraphFunction(netPrecision, inputParams, fq, "FQScaleshiftWithConstantShift");
+ function = create_ov_model(netPrecision, inputParams, fq, "FQScaleshiftWithConstantShift");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/fuse_conv_fq_with_shared_constants.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/fuse_conv_fq_with_shared_constants.cpp
index cb9971daa6a..6702c90ce93 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/fuse_conv_fq_with_shared_constants.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/fuse_conv_fq_with_shared_constants.cpp
@@ -59,7 +59,7 @@ public:
auto fq_after =
std::make_shared<ov::op::v0::FakeQuantize>(conv, shared_il, shared_ih, shared_ol, shared_oh, 256);
- function = makeNgraphFunction(precision, input_params, fq_after, "ConvFQWithSharedContants");
+ function = create_ov_model(precision, input_params, fq_after, "ConvFQWithSharedContants");
}
};
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/matmul_quantized_subgraph.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/matmul_quantized_subgraph.cpp
index 1c12f4d9f88..46a917ae917 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/matmul_quantized_subgraph.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/matmul_quantized_subgraph.cpp
@@ -97,7 +97,7 @@ protected:
// only matmul avx2 support s8*s8 input
auto matMul2 = std::make_shared<ov::op::v0::MatMul>(nodeBeforeConv, fq3, false, false);
- function = makeNgraphFunction(ngPrec, inputParams, matMul2, "MatmulBrgemmInt8");
+ function = create_ov_model(ngPrec, inputParams, matMul2, "MatmulBrgemmInt8");
}
void check_node(std::shared_ptr<const ov::Model> function, const std::string& nodeName) {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/memory_sharing_test.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/memory_sharing_test.cpp
index 46348973683..fce1516afbb 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/memory_sharing_test.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/memory_sharing_test.cpp
@@ -53,7 +53,7 @@ TEST_F(EdgeWithSameNameInTwoModels, smoke_CompareWithRef) {
convOutCh1);
conv1->set_friendly_name(convName);
conv1->get_input_node_shared_ptr(1)->set_friendly_name(weightName);
- auto model1 = makeNgraphFunction(type, params1, conv1, "Model1");
+ auto model1 = create_ov_model(type, params1, conv1, "Model1");
// second model
const std::vector<ov::Shape> shapes2{{1, 32, 24, 24}};
@@ -73,7 +73,7 @@ TEST_F(EdgeWithSameNameInTwoModels, smoke_CompareWithRef) {
convOutCh2);
conv2->set_friendly_name(convName);
conv2->get_input_node_shared_ptr(1)->set_friendly_name(weightName);
- auto model2 = makeNgraphFunction(type, params2, conv2, "Model2");
+ auto model2 = create_ov_model(type, params2, conv2, "Model2");
// model compilation
std::map<std::string, ov::AnyMap> config;
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/powerstatic_bf16_saturation.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/powerstatic_bf16_saturation.cpp
index 7eb2ee9c1d1..5811d461c5c 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/powerstatic_bf16_saturation.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/powerstatic_bf16_saturation.cpp
@@ -63,7 +63,7 @@ protected:
std::make_shared<ov::op::v0::Constant>(ov::element::f32, ov::Shape{}, -3.40282e+38f);
const auto add = std::make_shared<ov::op::v1::Add>(concat, const_large_negative);
- function = makeNgraphFunction(ElementType::f32, parameters, add, "PowerStaticBF16Saturation");
+ function = create_ov_model(ElementType::f32, parameters, add, "PowerStaticBF16Saturation");
configuration.insert({ov::hint::inference_precision(ov::element::bf16)});
configuration.insert(ov::intel_cpu::snippets_mode(ov::intel_cpu::SnippetsMode::DISABLE));
}
@@ -148,7 +148,7 @@ protected:
auto subtract_step = std::make_shared<ov::op::v1::Subtract>(const_one, multiply_step);
auto final_multiply = std::make_shared<ov::op::v1::Multiply>(subtract_step, const_large_negative);
- function = makeNgraphFunction(ElementType::f32, parameters, final_multiply, "PowerStaticBetaBF16Saturation");
+ function = create_ov_model(ElementType::f32, parameters, final_multiply, "PowerStaticBetaBF16Saturation");
configuration.insert({ov::hint::inference_precision(ov::element::bf16)});
configuration.insert(ov::intel_cpu::snippets_mode(ov::intel_cpu::SnippetsMode::DISABLE));
}
diff --git a/src/plugins/intel_cpu/tests/functional/utils/cpu_test_utils.cpp b/src/plugins/intel_cpu/tests/functional/utils/cpu_test_utils.cpp
index 5ad463d9bfc..d7d32811a65 100644
--- a/src/plugins/intel_cpu/tests/functional/utils/cpu_test_utils.cpp
+++ b/src/plugins/intel_cpu/tests/functional/utils/cpu_test_utils.cpp
@@ -373,7 +373,7 @@ static void quantize(const std::shared_ptr<ov::Model>& model, const Quantization
manager.run_passes(model);
}
-std::shared_ptr<ov::Model> CPUTestsBase::makeNgraphFunction(const ov::element::Type& ngPrc,
+std::shared_ptr<ov::Model> CPUTestsBase::create_ov_model(const ov::element::Type& ngPrc,
ov::ParameterVector& params,
const std::shared_ptr<ov::Node>& lastNode,
std::string name,
diff --git a/src/plugins/intel_cpu/tests/functional/utils/cpu_test_utils.hpp b/src/plugins/intel_cpu/tests/functional/utils/cpu_test_utils.hpp
index 224e43f9e9b..8efb44f8d13 100644
--- a/src/plugins/intel_cpu/tests/functional/utils/cpu_test_utils.hpp
+++ b/src/plugins/intel_cpu/tests/functional/utils/cpu_test_utils.hpp
@@ -141,7 +141,7 @@ public:
const ov::AnyMap& config);
CPUInfo getCPUInfo() const;
- std::shared_ptr<ov::Model> makeNgraphFunction(const ov::element::Type& ngPrc,
+ std::shared_ptr<ov::Model> create_ov_model(const ov::element::Type& ngPrc,
ov::ParameterVector& params,
const std::shared_ptr<ov::Node>& lastNode,
std::string name,