10 #include <unordered_set>
13 #include "ngraph/descriptor/input.hpp"
14 #include "ngraph/descriptor/tensor.hpp"
15 #include "ngraph/node_output.hpp"
45 Output(
Node* node,
size_t index,
const std::shared_ptr<Tensor>& tensor);
47 std::shared_ptr<Node> get_node()
const;
48 size_t get_index()
const {
return m_index; }
50 std::shared_ptr<Tensor> get_tensor_ptr()
const {
return m_tensor; }
51 void set_tensor_ptr(
const std::shared_ptr<Tensor>& tensor) { m_tensor = tensor; }
52 void add_input(Input* input);
53 void remove_input(Input* input);
54 const std::vector<Input*>& get_inputs()
const {
return m_inputs; }
55 Tensor& get_tensor()
const;
57 using RTMap = std::map<std::string, std::shared_ptr<Variant>>;
59 RTMap& get_rt_info() {
return m_rt_info; }
60 const RTMap& get_rt_info()
const {
return m_rt_info; }
77 std::shared_ptr<Tensor> m_tensor;
79 std::vector<Input*> m_inputs;
A handle for one of a node's outputs.
Definition: node_output.hpp:33
Class representing a shape that may be partially or totally dynamic.
Definition: partial_shape.hpp:34
Shape for a tensor.
Definition: shape.hpp:19
Definition: output.hpp:32
Output(Node *node, size_t index, const std::shared_ptr< Tensor > &tensor)
const PartialShape & get_partial_shape() const
const Shape & get_shape() const
const element::Type & get_element_type() const
Definition: element_type.hpp:51
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16