9 #include <unordered_set>
11 #include "ngraph/partial_shape.hpp"
12 #include "ngraph/shape.hpp"
13 #include "ngraph/type/element_type.hpp"
23 using HostTensorPtr = std::shared_ptr<runtime::HostTensor>;
35 const std::string& name);
39 size_t node_output_number);
41 NGRAPH_DEPRECATED(
"get_name() is deprecated! Please use get_names() instead.")
42 const std::string& get_name()
const;
43 NGRAPH_DEPRECATED(
"set_name() is deprecated! Please use set_names() instead.")
44 void set_name(
const std::string& name);
46 const std::unordered_set<std::string>& get_names()
const;
47 void set_names(
const std::unordered_set<std::string>& names);
50 void set_partial_shape(
const PartialShape& partial_shape);
59 const element::Type& get_element_type()
const {
return m_element_type; }
60 const Shape& get_shape()
const;
61 const PartialShape& get_partial_shape()
const {
return m_partial_shape; }
69 return m_upper_value !=
nullptr && m_upper_value == m_lower_value;
82 Node* m_node{
nullptr};
83 HostTensorPtr m_lower_value, m_upper_value;
84 size_t m_node_output_number{0};
87 std::unordered_set<std::string> m_names;
Class representing a shape that may be partially or totally dynamic.
Definition: partial_shape.hpp:34
Shape for a tensor.
Definition: shape.hpp:19
Compile-time descriptor of a first-class value that is a tensor.
Definition: tensor.hpp:28
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:65
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:63
bool has_and_set_bound() const
checks if lower and upper bound are set and point to the same HostTensor
Definition: tensor.hpp:67
void invalidate_values()
unsets bound value descriptions
Definition: element_type.hpp:51
Definition: host_tensor.hpp:26
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16