Class ov::descriptor::Tensor#
-
class Tensor#
Compile-time descriptor of a first-class value that is a tensor.
Public Functions
-
Tensor(const element::Type &element_type, const PartialShape &pshape, const std::unordered_set<std::string> &names = {})#
Creates Tensor descriptor.
- Parameters:
element_type – Element type
pshape – Partial shape of tensor
names – Tensor names (optional default empty).
-
const std::string &get_any_name() const#
Gets any tensor name. Throws if tensor has no names.
-
const std::unordered_set<std::string> &get_names() const#
Gets tensor names.
-
void set_names(const std::unordered_set<std::string> &names)#
Set new names.
- Parameters:
names – Names to set.
-
void add_names(const std::unordered_set<std::string> &names)#
Adds new names to tensor.
- Parameters:
names – new names to be added.
-
void set_value_symbol(const TensorSymbol &value_symbol)#
sets value symbol description
-
void invalidate_values()#
unsets bound value descriptions
-
const PartialShape &get_partial_shape() const#
Gets partial shape.
-
TensorSymbol get_value_symbol() const#
gets symbol value description
-
bool has_and_set_bound() const#
checks if lower and upper bound are set and point to the same Tensor
-
RTMap &get_rt_info()#
Gets runtime informations.
- Returns:
Runtime information map which can be modified.
-
const RTMap &get_rt_info() const#
Gets runtime informations.
- Returns:
Read only runtime information map.
-
Tensor(const element::Type &element_type, const PartialShape &pshape, const std::unordered_set<std::string> &names = {})#