Skip to content

Commit

Permalink
Rename namespace for makeParams
Browse files Browse the repository at this point in the history
  • Loading branch information
olpipi committed Aug 8, 2023
1 parent 24abb24 commit 77acd7c
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class ConvolutionBackpropDataExtendedLayerTest
std::tie(kernel, stride, padBegin, padEnd, dilation, convOutChannels, padType, outputPad) =
convBackpropDataParams;
auto ngPrc = FuncTestUtils::PrecisionUtils::convertIE2nGraphPrc(netPrecision);
auto params = ngraph::builder::makeParams(ngPrc, {inputShape});
auto params = ov::test::utils::builder::makeParams(ngPrc, {inputShape});
auto outputShapeNode =
ngraph::builder::makeConstant(ov::element::Type_t::i64, {outputShapeData.size()}, outputShapeData);
auto paramOuts =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class ConvolutionBackpropDataAddExtendedLayerTest
std::tie(kernel, stride, padBegin, padEnd, dilation, convOutChannels, padType, outputPad) =
convBackpropDataParams;
auto ngPrc = FuncTestUtils::PrecisionUtils::convertIE2nGraphPrc(netPrecision);
auto params = ngraph::builder::makeParams(ngPrc, {inputShape});
auto params = ov::test::utils::builder::makeParams(ngPrc, {inputShape});
auto outputShapeNode =
ngraph::builder::makeConstant(ov::element::Type_t::i64, {outputShapeData.size()}, outputShapeData);
auto paramOuts =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class BasicConvolutionBiasAddActivationLayerTest
}

auto ngPrc = FuncTestUtils::PrecisionUtils::convertIE2nGraphPrc(netPrecision);
auto params = ngraph::builder::makeParams(ngPrc, {inputShape});
auto params = ov::test::utils::builder::makeParams(ngPrc, {inputShape});
auto paramOuts =
ngraph::helpers::convert2OutputVector(ngraph::helpers::castOps2Nodes<ov::op::v0::Parameter>(params));
std::vector<float> filter_weights;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ void CudaEltwiseLayerTest::SetUp() {

init_input_shapes(shapes);

auto parameters = ngraph::builder::makeDynamicParams(netType, {inputDynamicShapes.front()});
auto parameters = ov::test::utils::builder::makeDynamicParams(netType, {inputDynamicShapes.front()});

ov::PartialShape shape_input_secondary;
switch (opType) {
Expand All @@ -229,7 +229,7 @@ void CudaEltwiseLayerTest::SetUp() {

std::shared_ptr<ngraph::Node> secondaryInput;
if (secondaryInputType == ngraph::helpers::InputLayerType::PARAMETER) {
secondaryInput = ngraph::builder::makeDynamicParams(netType, {shape_input_secondary}).front();
secondaryInput = ov::test::utils::builder::makeDynamicParams(netType, {shape_input_secondary}).front();
parameters.push_back(std::dynamic_pointer_cast<ngraph::opset3::Parameter>(secondaryInput));
} else {
constexpr bool is_random = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class FullyConnectedLayerTest : public testing::WithParamInterface<FullyConnecte
configuration.insert(additionalConfig.begin(), additionalConfig.end());

auto ngPrc = FuncTestUtils::PrecisionUtils::convertIE2nGraphPrc(netPrecision);
auto params = ngraph::builder::makeParams(ngPrc, {shapeRelatedParams.input1.first});
auto params = ov::test::utils::builder::makeParams(ngPrc, {shapeRelatedParams.input1.first});

std::shared_ptr<ov::Node> secondaryInput;
if (secondaryInputType == ngraph::helpers::InputLayerType::PARAMETER) {
Expand Down Expand Up @@ -190,7 +190,7 @@ class FullyConnectedLayer2MatMulTest : public testing::WithParamInterface<FullyC
configuration.insert(additionalConfig.begin(), additionalConfig.end());

auto ngPrc = FuncTestUtils::PrecisionUtils::convertIE2nGraphPrc(netPrecision);
auto params = ngraph::builder::makeParams(
auto params = ov::test::utils::builder::makeParams(
ngPrc, {shapeRelatedParams.matmul1_input1.first, shapeRelatedParams.matmul2_input1.first});

std::shared_ptr<ov::Node> matmul0SecondaryInput;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class LPCNetCUDNNGRUSequenceTest : public UnsymmetricalComparer<GRUSequenceTest>
};
m_max_seq_len_ = seq_lengths;
auto ngPrc = FuncTestUtils::PrecisionUtils::convertIE2nGraphPrc(netPrecision);
auto params = ngraph::builder::makeParams(ngPrc, {inputShapes[0], inputShapes[1]});
auto params = ov::test::utils::builder::makeParams(ngPrc, {inputShapes[0], inputShapes[1]});

ASSERT_EQ(InputLayerType::CONSTANT, WRBType);
std::vector<ov::Shape> WRB = {inputShapes[3], inputShapes[4], inputShapes[5], inputShapes[2]};
Expand Down
4 changes: 2 additions & 2 deletions modules/nvidia_plugin/tests/unit/test_networks.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ inline std::shared_ptr<ngraph::Function> CreateMatMulTestNetwork() {
std::map<std::string, std::string> additionalConfig;

auto ngPrc = InferenceEngine::details::convertPrecision(netPrecision);
auto params = ngraph::builder::makeParams(ngPrc, {{3, 2, 10, 10}});
auto params = ov::test::utils::builder::makeParams(ngPrc, {{3, 2, 10, 10}});

auto secondaryInput = std::make_shared<ov::op::v0::Constant>(ngPrc, ov::Shape{3, 2, 10, 20});
auto paramOuts =
Expand Down Expand Up @@ -66,7 +66,7 @@ inline std::shared_ptr<ngraph::Function> CreateSuperOperationTestNetwork() {
std::map<std::string, std::string> additionalConfig;

auto ngPrc = InferenceEngine::details::convertPrecision(netPrecision);
auto params = ngraph::builder::makeParams(ngPrc, {{3, 2, 10, 10}});
auto params = ov::test::utils::builder::makeParams(ngPrc, {{3, 2, 10, 10}});

auto secondaryInput = std::make_shared<ov::op::v0::Constant>(ngPrc, ov::Shape{3, 2, 10, 20});
auto paramOuts =
Expand Down

0 comments on commit 77acd7c

Please sign in to comment.