21 #include <unordered_set>
24 #include "ngraph/descriptor/input.hpp"
25 #include "ngraph/descriptor/tensor.hpp"
26 #include "ngraph/node_output.hpp"
54 Output(
Node* node,
size_t index,
const std::shared_ptr<Tensor>& tensor);
56 std::shared_ptr<Node> get_node()
const;
57 size_t get_index()
const {
return m_index; }
59 std::shared_ptr<Tensor> get_tensor_ptr()
const {
return m_tensor; }
60 void set_tensor_ptr(
const std::shared_ptr<Tensor>& tensor) { m_tensor = tensor; }
61 void add_input(Input* input);
62 void remove_input(Input* input);
63 const std::vector<Input*>& get_inputs()
const {
return m_inputs; }
64 Tensor& get_tensor()
const;
82 std::shared_ptr<Tensor> m_tensor;
83 std::vector<Input*> m_inputs;
A handle for one of a node's outputs.
Definition: node_output.hpp:42
Class representing a shape that may be partially or totally dynamic.
Definition: partial_shape.hpp:46
Shape for a tensor.
Definition: shape.hpp:31
Definition: output.hpp:41
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:61
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28