diff --git a/inference-engine/tests/functional/inference_engine/CMakeLists.txt b/inference-engine/tests/functional/inference_engine/CMakeLists.txt index 59f964bc2a1..e3f7388aa31 100644 --- a/inference-engine/tests/functional/inference_engine/CMakeLists.txt +++ b/inference-engine/tests/functional/inference_engine/CMakeLists.txt @@ -91,7 +91,6 @@ ie_faster_build(${TARGET_NAME} file(GLOB_RECURSE legacy_tests "${CMAKE_CURRENT_SOURCE_DIR}/transformations/*.cpp" # CVS-55385 - "${CMAKE_CURRENT_SOURCE_DIR}/lp_transformations/*.cpp" # CVS-55376 "${CMAKE_CURRENT_SOURCE_DIR}/ngraph_reader/*.cpp" # CVS-55365 "${CMAKE_CURRENT_SOURCE_DIR}/cnn_network/cnn_ngraph_impl_tests.cpp" # CVS-55375 ) diff --git a/inference-engine/tests/functional/inference_engine/lp_transformations/reshape_fully_connected_transformation.cpp b/inference-engine/tests/functional/inference_engine/lp_transformations/reshape_fully_connected_transformation.cpp deleted file mode 100644 index b3d4d16ddcb..00000000000 --- a/inference-engine/tests/functional/inference_engine/lp_transformations/reshape_fully_connected_transformation.cpp +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (C) 2018-2021 Intel Corporation -// SPDX-License-Identifier: Apache-2.0 -// - -#include -#include -#include - -#include - -#include -#include -#include -#include -#include "layer_transformation.hpp" -#include "common_test_utils/ngraph_test_utils.hpp" -#include "lpt_ngraph_functions/reshape_fully_connected_function.hpp" - -using namespace testing; -using namespace ngraph::pass; - -namespace { - -class ReshapeFullyConnectedTransformationTestValues { -public: - ngraph::Shape inputShape; - ngraph::element::Type inputPrecision1; - ngraph::element::Type inputPrecision2; - ngraph::element::Type inputPrecision3; - ngraph::Shape outputShape; - ngraph::element::Type outputPrecision; -}; - -class ReshapeFullyConnectedTransformation : - public LayerTransformation, - public testing::WithParamInterface { -public: - void SetUp() override { - using namespace ngraph::builder::subgraph; - const ReshapeFullyConnectedTransformationTestValues testValues = GetParam(); - - actualFunction = ReshapeFullyConnectedFunction::getOriginal( - testValues.inputShape, - testValues.inputPrecision1, - testValues.inputPrecision2, - testValues.inputPrecision3, - testValues.outputShape, - testValues.outputPrecision); - - ngraph::pass::Manager manager; - manager.register_pass(); - manager.register_pass(); - manager.run_passes(actualFunction); - - referenceFunction = ReshapeFullyConnectedFunction::getReference( - testValues.inputShape, - testValues.inputPrecision1, - testValues.inputPrecision2, - testValues.inputPrecision3, - testValues.outputShape, - testValues.outputPrecision); - } - - static std::string getTestCaseName(testing::TestParamInfo obj) { - const ReshapeFullyConnectedTransformationTestValues testValues = obj.param; - std::ostringstream result; - result << - testValues.inputShape << "_" << - testValues.inputPrecision1 << "_" << - testValues.inputPrecision2 << "_" << - testValues.outputShape << "_" << - testValues.outputPrecision; - return result.str(); - } -}; - -TEST_P(ReshapeFullyConnectedTransformation, CompareFunctions) { - actualFunction->validate_nodes_and_infer_types(); - auto res = compare_functions(referenceFunction, actualFunction, true, true, true); - ASSERT_TRUE(res.first) << res.second; - - ASSERT_TRUE(LayerTransformation::allNamesAreUnique(actualFunction)) << "Not all names are unique"; -} - -std::vector testValues = { - { - { 1, 1, 2048 }, - ngraph::element::u8, - ngraph::element::i8, - ngraph::element::f32, - { 1, 1000 }, - ngraph::element::f32 - }, - { - { 1, 1, 2048 }, - ngraph::element::f32, - ngraph::element::f32, - ngraph::element::f32, - { 1, 1000 }, - ngraph::element::f32 - } -}; - -INSTANTIATE_TEST_SUITE_P( - smoke_LPT, - ReshapeFullyConnectedTransformation, - ::testing::ValuesIn(testValues), - ReshapeFullyConnectedTransformation::getTestCaseName); -} // namespace diff --git a/inference-engine/tests/functional/plugin/gpu/CMakeLists.txt b/inference-engine/tests/functional/plugin/gpu/CMakeLists.txt index b02bfc0ac5f..1f6c52d7538 100644 --- a/inference-engine/tests/functional/plugin/gpu/CMakeLists.txt +++ b/inference-engine/tests/functional/plugin/gpu/CMakeLists.txt @@ -21,11 +21,6 @@ addIeTargetTest( GPU ) -# CVS-55376 -set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/shared_tests_instances/low_precision_transformations/layer_transformation.cpp" - PROPERTIES INCLUDE_DIRECTORIES - $) - # try to find VA libraries find_package(PkgConfig QUIET) if(PkgConfig_FOUND) diff --git a/inference-engine/tests/functional/plugin/gpu/shared_tests_instances/low_precision_transformations/layer_transformation.cpp b/inference-engine/tests/functional/plugin/gpu/shared_tests_instances/low_precision_transformations/layer_transformation.cpp deleted file mode 100644 index c8b985be505..00000000000 --- a/inference-engine/tests/functional/plugin/gpu/shared_tests_instances/low_precision_transformations/layer_transformation.cpp +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (C) 2018-2021 Intel Corporation -// SPDX-License-Identifier: Apache-2.0 -// - -#include "shared_test_classes/base/low_precision_transformations/layer_transformation.hpp" - -#include -#include -#include -#include - -#include - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "ngraph_functions/pass/convert_prc.hpp" - -#include "common_test_utils/common_utils.hpp" -#include - -#include "functional_test_utils/plugin_cache.hpp" -#include "shared_test_classes/base/layer_test_utils.hpp" -#include "functional_test_utils/blob_utils.hpp" -#include "shared_test_classes/base/layer_test_utils.hpp" -#include "shared_test_classes/base/low_precision_transformations/layer_transformation.hpp" - -using namespace InferenceEngine::details; -#include "common_test_utils/common_utils.hpp" -#include "functional_test_utils/plugin_cache.hpp" -#include "shared_test_classes/base/layer_test_utils.hpp" -#include "functional_test_utils/blob_utils.hpp" - -namespace LayerTestsUtils { - -InferenceEngine::Precision LayerTransformation::getDeviceInternalPrecision(const InferenceEngine::Precision precision) { - if (precision == InferenceEngine::Precision::FP16) { - return InferenceEngine::Precision::FP32; - } - - return precision; -} - -ngraph::pass::low_precision::LayerTransformation::Params LayerTransformationParamsNGraphFactory::createParams() { - return ngraph::pass::low_precision::LayerTransformation::Params(); -} - -} // namespace LayerTestsUtils diff --git a/inference-engine/tests/functional/plugin/shared/CMakeLists.txt b/inference-engine/tests/functional/plugin/shared/CMakeLists.txt index abbdb505f99..de2e4b3692f 100644 --- a/inference-engine/tests/functional/plugin/shared/CMakeLists.txt +++ b/inference-engine/tests/functional/plugin/shared/CMakeLists.txt @@ -51,7 +51,6 @@ addIeTarget( lptNgraphFunctions sharedTestClasses PRIVATE - inference_engine_legacy # CVS-55376 openvino::util inference_engine_transformations DEPENDENCIES @@ -62,11 +61,6 @@ if(ENABLE_GAPI_PREPROCESSING) target_compile_definitions(${TARGET_NAME} PUBLIC ENABLE_GAPI_PREPROCESSING) endif() -# CVS-55376 -set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/src/low_precision_transformations/layer_transformation.cpp" - PROPERTIES INCLUDE_DIRECTORIES - $) - ie_faster_build(${TARGET_NAME} PCH PRIVATE "src/precomp.hpp" ) diff --git a/inference-engine/tests/functional/plugin/shared/src/low_precision_transformations/layer_transformation.cpp b/inference-engine/tests/functional/plugin/shared/src/low_precision_transformations/layer_transformation.cpp deleted file mode 100644 index 9542722b17f..00000000000 --- a/inference-engine/tests/functional/plugin/shared/src/low_precision_transformations/layer_transformation.cpp +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (C) 2018-2021 Intel Corporation -// SPDX-License-Identifier: Apache-2.0 -// - -#include "shared_test_classes/base/low_precision_transformations/layer_transformation.hpp" - -#include -#include -#include -#include - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "legacy/ngraph_ops/fully_connected.hpp" -#include -#include -#include "ngraph_functions/pass/convert_prc.hpp" - -#include "common_test_utils/common_utils.hpp" -#include - -#include "functional_test_utils/plugin_cache.hpp" -#include "shared_test_classes/base/layer_test_utils.hpp" -#include "functional_test_utils/blob_utils.hpp" -#include "shared_test_classes/base/layer_test_utils.hpp" -#include "shared_test_classes/base/low_precision_transformations/layer_transformation.hpp" - -#include - -namespace LayerTestsUtils { - -InferenceEngine::Precision LayerTransformation::getDeviceInternalPrecision(const InferenceEngine::Precision precision) { - if (precision == InferenceEngine::Precision::FP16) { - return InferenceEngine::Precision::FP32; - } - - return precision; -} - -ngraph::pass::low_precision::LayerTransformation::Params LayerTransformationParamsNGraphFactory::createParams() { - return ngraph::pass::low_precision::LayerTransformation::Params(); -} - -} // namespace LayerTestsUtils diff --git a/inference-engine/tests/functional/shared_test_classes/include/shared_test_classes/base/low_precision_transformations/layer_transformation.hpp b/inference-engine/tests/functional/shared_test_classes/include/shared_test_classes/base/low_precision_transformations/layer_transformation.hpp index b41c5a4bc2f..603a171557a 100644 --- a/inference-engine/tests/functional/shared_test_classes/include/shared_test_classes/base/low_precision_transformations/layer_transformation.hpp +++ b/inference-engine/tests/functional/shared_test_classes/include/shared_test_classes/base/low_precision_transformations/layer_transformation.hpp @@ -43,8 +43,6 @@ protected: static std::string toString(const ngraph::pass::low_precision::LayerTransformation::Params& params); - static InferenceEngine::Precision getDeviceInternalPrecision(const InferenceEngine::Precision precision); - static std::string getTestCaseNameByParams( const InferenceEngine::Precision precision, const InferenceEngine::SizeVector& inputShapes, diff --git a/inference-engine/tests/functional/shared_test_classes/src/base/low_precision_transformations/layer_transformation.cpp b/inference-engine/tests/functional/shared_test_classes/src/base/low_precision_transformations/layer_transformation.cpp index 221a60d33c4..21f97af20be 100644 --- a/inference-engine/tests/functional/shared_test_classes/src/base/low_precision_transformations/layer_transformation.cpp +++ b/inference-engine/tests/functional/shared_test_classes/src/base/low_precision_transformations/layer_transformation.cpp @@ -29,6 +29,10 @@ ngraph::pass::low_precision::LayerTransformation::Params LayerTransformationPara return ngraph::pass::low_precision::LayerTransformation::Params(); } +ngraph::pass::low_precision::LayerTransformation::Params LayerTransformationParamsNGraphFactory::createParams() { + return ngraph::pass::low_precision::LayerTransformation::Params(); +} + LayerTransformation::LayerTransformation() { threshold = 0.05; auto& configuration = GetConfiguration(); diff --git a/inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/include/lpt_ngraph_functions/convert_mul_or_add_finally_with_dequantization_function.hpp b/inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/include/lpt_ngraph_functions/convert_mul_or_add_finally_with_dequantization_function.hpp deleted file mode 100644 index 5d76a046003..00000000000 --- a/inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/include/lpt_ngraph_functions/convert_mul_or_add_finally_with_dequantization_function.hpp +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (C) 2018-2021 Intel Corporation -// SPDX-License-Identifier: Apache-2.0 -// - -#pragma once - -#include -#include -#include -#include "lpt_ngraph_functions/common/fake_quantize_on_data.hpp" -#include "lpt_ngraph_functions/common/dequantization_operations.hpp" - -namespace ngraph { -namespace builder { -namespace subgraph { - -class ConvertMulOrAddWithDequantizationFunction { -public: - static std::shared_ptr getOriginal( - const ngraph::Shape& inputShape, - const ngraph::element::Type inputPrecision, - const std::vector& multiplyConst); - - static std::shared_ptr getReference( - const ngraph::Shape& inputShape, - const ngraph::element::Type inputPrecision, - const std::vector& multiplyConst); -}; -} // namespace subgraph -} // namespace builder -} // namespace ngraph diff --git a/inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/include/lpt_ngraph_functions/reshape_fully_connected_function.hpp b/inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/include/lpt_ngraph_functions/reshape_fully_connected_function.hpp deleted file mode 100644 index 661093eaade..00000000000 --- a/inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/include/lpt_ngraph_functions/reshape_fully_connected_function.hpp +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (C) 2018-2021 Intel Corporation -// SPDX-License-Identifier: Apache-2.0 -// - -#pragma once - -#include -#include -#include -#include "lpt_ngraph_functions/common/fake_quantize_on_data.hpp" -#include "lpt_ngraph_functions/common/dequantization_operations.hpp" - -namespace ngraph { -namespace builder { -namespace subgraph { - -class ReshapeFullyConnectedFunction { -public: - static std::shared_ptr getOriginal( - const ngraph::Shape& inputShape, - const ngraph::element::Type inputPrecision1, - const ngraph::element::Type inputPrecision2, - const ngraph::element::Type inputPrecision3, - const ngraph::Shape& outputShape, - const ngraph::element::Type outputPrecision); - - static std::shared_ptr getReference( - const ngraph::Shape& inputShape, - const ngraph::element::Type inputPrecision1, - const ngraph::element::Type inputPrecision2, - const ngraph::element::Type inputPrecision3, - const ngraph::Shape& outputShape, - const ngraph::element::Type outputPrecision); -}; -} // namespace subgraph -} // namespace builder -} // namespace ngraph diff --git a/inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/src/convert_mul_or_add_finally_with_dequantization_function.cpp b/inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/src/convert_mul_or_add_finally_with_dequantization_function.cpp deleted file mode 100644 index f51053d4ab6..00000000000 --- a/inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/src/convert_mul_or_add_finally_with_dequantization_function.cpp +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (C) 2018-2021 Intel Corporation -// SPDX-License-Identifier: Apache-2.0 -// - -#include "lpt_ngraph_functions/convert_mul_or_add_finally_with_dequantization_function.hpp" - -#include -#include -#include - - -#include -#include "ngraph_functions/subgraph_builders.hpp" -#include "lpt_ngraph_functions/common/builders.hpp" -#include "low_precision/network_helper.hpp" -#include - -namespace ngraph { -namespace builder { -namespace subgraph { - -using namespace ngraph::pass; - -std::shared_ptr ConvertMulOrAddWithDequantizationFunction::getOriginal( - const ngraph::Shape& inputShape, - const ngraph::element::Type inputPrecision, - const std::vector& multiplyConst) { - const auto input = std::make_shared(inputPrecision, inputShape); - const auto reluOriginal = ngraph::opset1::Relu( - ngraph::op::TemporaryReplaceOutputType(input, element::f32).get()); - - std::shared_ptr relu = std::make_shared>( - reluOriginal, - std::vector{ element::f32, element::f32 }, - std::vector{}); - - - const auto multiply = std::make_shared( - relu, - std::make_shared(element::f32, inputShape, multiplyConst)); - - multiply->set_friendly_name("output"); - - ngraph::ResultVector results{ std::make_shared(multiply) }; - return std::make_shared(results, ngraph::ParameterVector{ input }, - "ConvertMulOrAddTransformationWithDequantization"); -} - -std::shared_ptr ConvertMulOrAddWithDequantizationFunction::getReference( - const ngraph::Shape& inputShape, - const ngraph::element::Type inputPrecision, - const std::vector& multiplyConst) { - const auto input = std::make_shared(inputPrecision, inputShape); - const auto reluOriginal = ngraph::opset1::Relu( - ngraph::op::TemporaryReplaceOutputType(input, element::f32).get()); - - std::shared_ptr relu = std::make_shared>( - reluOriginal, - std::vector{ element::f32, element::f32 }, - std::vector{}); - - const auto weights = std::make_shared(element::f32, inputShape, multiplyConst); - const auto bias = std::make_shared(element::f32, inputShape, 0.0); - std::shared_ptr scaleShift = std::make_shared(relu, weights, bias); - - scaleShift->set_friendly_name("output"); - - ngraph::ResultVector results{ std::make_shared(scaleShift) }; - return std::make_shared(results, ngraph::ParameterVector{ input }, "ConvertMulOrAddTransformationWithDequantization"); -} - -} // namespace subgraph -} // namespace builder -} // namespace ngraph diff --git a/inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/src/mul_add_to_scaleshift_or_power_function.cpp b/inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/src/mul_add_to_scaleshift_or_power_function.cpp deleted file mode 100644 index eaa31273f12..00000000000 --- a/inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/src/mul_add_to_scaleshift_or_power_function.cpp +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (C) 2018-2021 Intel Corporation -// SPDX-License-Identifier: Apache-2.0 -// - -#include "lpt_ngraph_functions/mul_add_to_scaleshift_or_power_function.hpp" - -#include -#include "ngraph_ops/type_relaxed.hpp" -#include "low_precision/network_helper.hpp" - -#include -#include - -#include "lpt_ngraph_functions/common/builders.hpp" -#include "lpt_ngraph_functions/common/dequantization_operations.hpp" - -namespace ngraph { -namespace builder { -namespace subgraph { - using namespace ngraph::pass; - std::shared_ptr MulAddToScaleshiftOrPowerFunction::getOriginal( - const ngraph::element::Type precision, - const ngraph::Shape& inputShape, - bool isDequantization, - const ngraph::builder::subgraph::DequantizationOperations::Multiply& mulValues, - const ngraph::builder::subgraph::Add& addValues) { - const auto input = std::make_shared(precision, inputShape); - - const auto mulConst = ngraph::op::Constant::create(ngraph::element::f32, mulValues.constantShape, mulValues.values); - const auto mul = std::make_shared>( - std::vector{element::f32, element::f32}, std::vector{ element::f32 }, - ngraph::op::TemporaryReplaceOutputType(input, element::f32).get(), - ngraph::op::TemporaryReplaceOutputType(mulConst, element::f32).get()); - - const auto addConst = ngraph::op::Constant::create(ngraph::element::f32, addValues.constantShape, addValues.values); - const auto add = std::make_shared(mul, addConst); - add->set_friendly_name("add"); - - ngraph::ResultVector results{ std::make_shared(add) }; - return std::make_shared(results, ngraph::ParameterVector{ input }, "MulAddToScaleshiftOrPowerFunction"); - } - - std::shared_ptr MulAddToScaleshiftOrPowerFunction::getReference( - const ngraph::element::Type precision, - const ngraph::Shape& inputShape, - bool isDequantization, - const ngraph::builder::subgraph::DequantizationOperations::Multiply& weightsValues, - const ngraph::builder::subgraph::Add& biasesValues, - const ngraph::element::Type precisionAfterOperation) { - const auto input = std::make_shared(precision, inputShape); - - ngraph::Shape constShape = { 1, inputShape[1], 1, 1 }; - const auto weights = ngraph::op::Constant::create(ngraph::element::f32, constShape, weightsValues.values); - const auto biases = ngraph::op::Constant::create(ngraph::element::f32, constShape, biasesValues.values); - - std::shared_ptr lastNode; - if (isDequantization) { - std::shared_ptr scaleshift = std::make_shared(input, weights, biases, precisionAfterOperation); - scaleshift->set_friendly_name("add"); - lastNode = scaleshift; - } else { - float scale = weightsValues.values[0]; - float shift = biasesValues.values[0]; - const auto power = std::make_shared(input, 1.f, scale, shift, precisionAfterOperation); - power->set_friendly_name("add"); - lastNode = power; - } - - - ngraph::ResultVector results{ std::make_shared(lastNode) }; - return std::make_shared(results, ngraph::ParameterVector{ input }, "MulAddToScaleshiftOrPowerFunction"); - } -} // namespace subgraph -} // namespace builder -} // namespace ngraph diff --git a/inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/src/reshape_fully_connected_function.cpp b/inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/src/reshape_fully_connected_function.cpp deleted file mode 100644 index 51687b75c09..00000000000 --- a/inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/src/reshape_fully_connected_function.cpp +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (C) 2018-2021 Intel Corporation -// SPDX-License-Identifier: Apache-2.0 -// - -#include "lpt_ngraph_functions/reshape_fully_connected_function.hpp" - -#include -#include -#include - - -#include -#include -#include "ngraph_functions/subgraph_builders.hpp" -#include "lpt_ngraph_functions/common/builders.hpp" -#include "low_precision/network_helper.hpp" - -namespace ngraph { -namespace builder { -namespace subgraph { - -using namespace ngraph::pass; - -std::shared_ptr ReshapeFullyConnectedFunction::getOriginal( - const ngraph::Shape& inputShape, - const ngraph::element::Type inputPrecision1, - const ngraph::element::Type inputPrecision2, - const ngraph::element::Type inputPrecision3, - const ngraph::Shape& outputShape, - const ngraph::element::Type outputPrecision) { - const auto input = std::make_shared(inputPrecision1, inputShape); - - const auto weightsShape = Shape{ outputShape[1], inputShape[1] }; - const auto weights = std::make_shared(inputPrecision2, weightsShape, std::vector(shape_size(weightsShape), 1.f)); - const auto bias = std::make_shared(inputPrecision3, Shape{ inputShape[1] }, 0.f); - - const std::shared_ptr fullyConnected = std::make_shared(input, weights, bias, outputShape, outputPrecision); - fullyConnected->set_friendly_name("fullyConnected"); - - ngraph::ResultVector results{ std::make_shared(fullyConnected) }; - return std::make_shared(results, ngraph::ParameterVector{ input }, "ReshapeFullyConnectedFunction"); -} - -std::shared_ptr ReshapeFullyConnectedFunction::getReference( - const ngraph::Shape& inputShape, - const ngraph::element::Type inputPrecision1, - const ngraph::element::Type inputPrecision2, - const ngraph::element::Type inputPrecision3, - const ngraph::Shape& outputShape, - const ngraph::element::Type outputPrecision) { - const auto input = std::make_shared(inputPrecision1, inputShape); - - std::vector reshapeShape{ -1, static_cast(inputShape.back()) }; - auto reshape = std::make_shared(input, opset1::Constant::create(element::i64, Shape{ 2 }, reshapeShape), true); - - const auto weightsShape = Shape{ outputShape[1], inputShape[1] }; - const auto weights = std::make_shared(inputPrecision2, weightsShape, std::vector(shape_size(weightsShape), 1.f)); - const auto bias = std::make_shared(inputPrecision3, Shape{ inputShape[1] }, 0.f); - - const std::shared_ptr fullyConnected = std::make_shared(reshape, weights, bias, outputShape, outputPrecision); - fullyConnected->set_friendly_name("fullyConnected"); - - ngraph::ResultVector results{ std::make_shared(fullyConnected) }; - return std::make_shared(results, ngraph::ParameterVector{ input }, "ReshapeFullyConnectedFunction"); -} - -} // namespace subgraph -} // namespace builder -} // namespace ngraph