Skip to content

Commit

Permalink
Remove makeParams
Browse files Browse the repository at this point in the history
  • Loading branch information
nkogteva committed Aug 28, 2023
1 parent 08800ea commit 1d10d0c
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2018-2021 Intel Corporation
// Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "single_layer_tests/lstm_sequence.hpp"
Expand Down Expand Up @@ -133,7 +133,9 @@ class CUDALSTMSequenceOptimizedTest : public testing::WithParamInterface<LSTMSeq
const auto& B_shape = input_shapes[6];

auto ngPrc = FuncTestUtils::PrecisionUtils::convertIE2nGraphPrc(netPrecision);
auto params = makeParams(ngPrc, {input_shapes[0], input_shapes[1], input_shapes[2]});
ov::ParameterVector params{std::make_shared<ov::op::v0::Parameter>(ngPrc, input_shapes[0]),
std::make_shared<ov::op::v0::Parameter>(ngPrc, input_shapes[1]),
std::make_shared<ov::op::v0::Parameter>(ngPrc, input_shapes[2])};
std::shared_ptr<ov::Node> x_node = params[0];
if (major_batch == "SequenceMajor") {
x_node = std::make_shared<ov::op::v1::Transpose>(params[0],
Expand All @@ -145,7 +147,7 @@ class CUDALSTMSequenceOptimizedTest : public testing::WithParamInterface<LSTMSeq
m_mode == SequenceTestsMode::PURE_SEQ_RAND_SEQ_LEN_CONST);
EXPECT_EQ(is_pure_sequence, true);
if (m_mode == SequenceTestsMode::PURE_SEQ_RAND_SEQ_LEN_PARAM) {
auto param = makeParams(ov::element::i64, {input_shapes[3]}).at(0);
auto param = std::make_shared<ov::op::v0::Parameter>(ov::element::i64, input_shapes[3]);
seq_lengths_node = param;
seq_lengths_node->set_friendly_name("seq_lengths");
params.push_back(param);
Expand Down

0 comments on commit 1d10d0c

Please sign in to comment.