class ov::Input<Node>¶
Overview¶
A handle for one of a node’s inputs. More…
#include <node_input.hpp>
template <>
class Input<Node>
{
public:
// construction
Input(Node \* node, size_t index);
// methods
Node \* get_node() const;
size_t get_index() const;
const element::Type& get_element_type() const;
const Shape& get_shape() const;
const PartialShape& get_partial_shape() const;
Output<Node> get_source_output() const;
descriptor::Tensor& get_tensor() const;
std::shared_ptr<descriptor::Tensor> get_tensor_ptr() const;
bool get_is_relevant_to_shapes() const;
bool get_is_relevant_to_values() const;
void replace_source_output(const Output<Node>& new_source_output) const;
RTMap& get_rt_info();
const RTMap& get_rt_info() const;
bool operator == (const Input& other) const;
bool operator != (const Input& other) const;
bool operator < (const Input& other) const;
bool operator > (const Input& other) const;
bool operator <= (const Input& other) const;
bool operator >= (const Input& other) const;
};
Detailed Documentation¶
A handle for one of a node’s inputs.
Construction¶
Input(Node \* node, size_t index)
Constructs a Input.
Parameters:
node |
Pointer to the node for the input handle. |
index |
The index of the input. |
Methods¶
Node \* get_node() const
Returns:
A pointer to the node referenced by this input handle.
size_t get_index() const
Returns:
The index of the input referred to by this input handle.
const element::Type& get_element_type() const
Returns:
The element type of the input referred to by this input handle.
const Shape& get_shape() const
Returns:
The shape of the input referred to by this input handle.
const PartialShape& get_partial_shape() const
Returns:
The partial shape of the input referred to by this input handle.
Returns:
A handle to the output that is connected to this input.
descriptor::Tensor& get_tensor() const
Returns:
A reference to the tensor descriptor for this input.
std::shared_ptr<descriptor::Tensor> get_tensor_ptr() const
Returns:
A shared pointer to the tensor descriptor for this input.
bool get_is_relevant_to_shapes() const
Returns:
true if this input is relevant to its node’s output shapes; else false.
bool get_is_relevant_to_values() const
Returns:
true if this input is relevant to its node’s output values; else false.
Replaces the source output of this input.
Parameters:
new_source_output |
A handle for the output that will replace this input’s source. |
RTMap& get_rt_info()
Returns:
The reference to runtime info map
const RTMap& get_rt_info() const
Returns:
The constant reference to runtime info map
class ov::Input<const Node>¶
Overview¶
A handle for one of a node’s inputs. More…
#include <node_input.hpp>
template <>
class Input<const Node>
{
public:
// construction
Input(const Node \* node, size_t index);
// methods
const Node \* get_node() const;
size_t get_index() const;
const element::Type& get_element_type() const;
const Shape& get_shape() const;
const PartialShape& get_partial_shape() const;
Output<Node> get_source_output() const;
descriptor::Tensor& get_tensor() const;
std::shared_ptr<descriptor::Tensor> get_tensor_ptr() const;
bool get_is_relevant_to_shapes() const;
bool get_is_relevant_to_values() const;
const RTMap& get_rt_info() const;
bool operator == (const Input& other) const;
bool operator != (const Input& other) const;
bool operator < (const Input& other) const;
bool operator > (const Input& other) const;
bool operator <= (const Input& other) const;
bool operator >= (const Input& other) const;
};
Detailed Documentation¶
A handle for one of a node’s inputs.
Construction¶
Input(const Node \* node, size_t index)
Constructs a Input.
Parameters:
node |
Pointer to the node for the input handle. |
index |
The index of the input. |
Methods¶
const Node \* get_node() const
Returns:
A pointer to the node referenced by this input handle.
size_t get_index() const
Returns:
The index of the input referred to by this input handle.
const element::Type& get_element_type() const
Returns:
The element type of the input referred to by this input handle.
const Shape& get_shape() const
Returns:
The shape of the input referred to by this input handle.
const PartialShape& get_partial_shape() const
Returns:
The partial shape of the input referred to by this input handle.
Returns:
A handle to the output that is connected to this input.
descriptor::Tensor& get_tensor() const
Returns:
A reference to the tensor descriptor for this input.
std::shared_ptr<descriptor::Tensor> get_tensor_ptr() const
Returns:
A shared pointer to the tensor descriptor for this input.
bool get_is_relevant_to_shapes() const
Returns:
true if this input is relevant to its node’s output shapes; else false.
bool get_is_relevant_to_values() const
Returns:
true if this input is relevant to its node’s output values; else false.
const RTMap& get_rt_info() const
Returns:
The constant reference to runtime info map