diff --git a/modules/nvidia_plugin/src/ops/result.cpp b/modules/nvidia_plugin/src/ops/result.cpp index 030f6c9d2..b27ba766c 100644 --- a/modules/nvidia_plugin/src/ops/result.cpp +++ b/modules/nvidia_plugin/src/ops/result.cpp @@ -62,21 +62,8 @@ std::optional ResultOp::GetOutputTensorSubIndex(const ov::Output ResultOp::GetOutputTensorName(const ov::op::v0::Result& node) { - std::vector outputNames; - const auto& input = node.input_value(0); - auto name = ov::op::util::get_ie_output_name(input); - outputNames.push_back(name); - - auto resultName = node.get_friendly_name(); - - // NOTE: New way of getting the fused names for OpenVINO 2.0 API - // TODO: When support for old OpenVINO API will be stopped, consider using only this approach. - // Also see any issues with Tacatron2 network - const auto& fusedResults = ov::getFusedNamesVector(input.get_node()->shared_from_this()); - outputNames.insert(outputNames.end(), fusedResults.begin(), fusedResults.end()); - - return outputNames; + return ov::getFusedNamesVector(input.get_node()->shared_from_this()); } void ResultOp::Capture(InferenceRequestContext& context,