From 71a1d2b0b96bf533d6e0c5a33cac3f569a3854e2 Mon Sep 17 00:00:00 2001 From: Xuejun Zhai Date: Fri, 26 Jan 2024 03:19:51 +0800 Subject: [PATCH] OV deprectaed ov::descriptor::Tensor construct with name (#850) * OV deprectaed ov::descriptor::Tensor construct with name Signed-off-by: Zhai, Xuejun * Fix error Signed-off-by: Zhai, Xuejun --------- Signed-off-by: Zhai, Xuejun --- modules/nvidia_plugin/tests/unit/result.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/nvidia_plugin/tests/unit/result.cpp b/modules/nvidia_plugin/tests/unit/result.cpp index 0660e606f..105af4beb 100644 --- a/modules/nvidia_plugin/tests/unit/result.cpp +++ b/modules/nvidia_plugin/tests/unit/result.cpp @@ -25,7 +25,9 @@ class ov::Output : public ov::Output { public: explicit Output(std::shared_ptr node) : ov::Output(node, 0) { auto tensor = std::make_shared( - ov::element::Type{}, ov::PartialShape{1}, ParameterStubNode::get_type_info_static().name); + ov::element::Type{}, + ov::PartialShape{1}, + std::unordered_set{ParameterStubNode::get_type_info_static().name}); node->m_outputs.emplace_back(node.get(), 0, tensor); } };