21 #include <unordered_set>
23 #include "ngraph/partial_shape.hpp"
24 #include "ngraph/shape.hpp"
25 #include "ngraph/type/element_type.hpp"
35 using HostTensorPtr = std::shared_ptr<runtime::HostTensor>;
47 const std::string& name);
51 size_t node_output_number);
53 NGRAPH_DEPRECATED(
"get_name() is deprecated! Please use get_names() instead.")
54 const std::string& get_name()
const;
55 NGRAPH_DEPRECATED(
"set_name() is deprecated! Please use set_names() instead.")
56 void set_name(
const std::string& name);
58 const std::unordered_set<std::string>& get_names()
const;
59 void set_names(
const std::unordered_set<std::string>& names);
62 void set_partial_shape(
const PartialShape& partial_shape);
71 const element::Type& get_element_type()
const {
return m_element_type; }
72 const Shape& get_shape()
const;
73 const PartialShape& get_partial_shape()
const {
return m_partial_shape; }
81 return m_upper_value !=
nullptr && m_upper_value == m_lower_value;
94 Node* m_node{
nullptr};
95 HostTensorPtr m_lower_value, m_upper_value;
96 size_t m_node_output_number{0};
99 std::unordered_set<std::string> m_names;
Class representing a shape that may be partially or totally dynamic.
Definition: partial_shape.hpp:46
Shape for a tensor.
Definition: shape.hpp:31
Compile-time descriptor of a first-class value that is a tensor.
Definition: tensor.hpp:40
void set_upper_value(const HostTensorPtr &value)
sets upper bound value description
HostTensorPtr get_upper_value() const
gets upper bound value description
Definition: tensor.hpp:77
void set_lower_value(const HostTensorPtr &value)
sets lower bound value description
HostTensorPtr get_lower_value() const
gets lower bound value description
Definition: tensor.hpp:75
bool has_and_set_bound() const
checks if lower and upper bound are set and point to the same HostTensor
Definition: tensor.hpp:79
void invalidate_values()
unsets bound value descriptions
Definition: element_type.hpp:61
Definition: host_tensor.hpp:38
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28