Skip to content

Commit

Permalink
OV deprectaed ov::descriptor::Tensor construct with name (openvinotoo…
Browse files Browse the repository at this point in the history
…lkit#850)

* OV deprectaed ov::descriptor::Tensor construct with name

Signed-off-by: Zhai, Xuejun <[email protected]>

* Fix error

Signed-off-by: Zhai, Xuejun <[email protected]>

---------

Signed-off-by: Zhai, Xuejun <[email protected]>
  • Loading branch information
zhaixuejun1993 authored Jan 25, 2024
1 parent 9225660 commit 71a1d2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/nvidia_plugin/tests/unit/result.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ class ov::Output<ParameterStubNode> : public ov::Output<ov::Node> {
public:
explicit Output<ParameterStubNode>(std::shared_ptr<ParameterStubNode> node) : ov::Output<ov::Node>(node, 0) {
auto tensor = std::make_shared<ov::descriptor::Tensor>(
ov::element::Type{}, ov::PartialShape{1}, ParameterStubNode::get_type_info_static().name);
ov::element::Type{},
ov::PartialShape{1},
std::unordered_set<std::string>{ParameterStubNode::get_type_info_static().name});
node->m_outputs.emplace_back(node.get(), 0, tensor);
}
};
Expand Down

0 comments on commit 71a1d2b

Please sign in to comment.