19 #include "ngraph/op/op.hpp"
50 virtual std::shared_ptr<Node>
51 clone_with_new_inputs(
const OutputVector& new_args)
const override;
53 bool is_relevant_to_shapes()
const;
54 void set_is_relevant_to_shapes(
bool is_relevant);
56 const PartialShape& get_partial_shape()
const {
return m_partial_shape; }
57 PartialShape& get_partial_shape() {
return m_partial_shape; }
58 void set_partial_shape(
const PartialShape& partial_shape)
60 m_partial_shape = partial_shape;
62 const element::Type& get_element_type()
const {
return m_element_type; }
63 void set_element_type(
const element::Type& element_type)
65 m_element_type = element_type;
69 PartialShape m_partial_shape;
70 element::Type m_element_type;
71 bool m_is_relevant_to_shapes;
76 using ParameterVector = std::vector<std::shared_ptr<op::Parameter>>;
86 static constexpr
DiscreteTypeInfo type_info{
"AttributeAdapter<ParameterVector>", 0};
89 ParameterVector& m_ref;
const DiscreteTypeInfo & get_type_info() const override
type info enables identification of the value accessor, as well as is_type and as_type.
Definition: parameter.hpp:87
An AttributeAdapter "captures" an attribute as an AT& and makes it available as a ValueAccessor<VAT>.
Definition: attribute_adapter.hpp:171
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:71
Class representing a shape that may be partially or totally dynamic.
Definition: partial_shape.hpp:46
Adapters will see visitor.
Definition: attribute_adapter.hpp:194
Definition: element_type.hpp:61
Root of all actual ops.
Definition: op.hpp:29
A function parameter.
Definition: parameter.hpp:34
Parameter()=default
Constructions a tensor-typed parameter node.
void validate_and_infer_types() override
Verifies that attributes and inputs are consistent and computes output shapes and element types....
Parameter(const ngraph::element::Type &element_type, const PartialShape &pshape)
Constructions a tensor-typed parameter node.
const NodeTypeInfo & get_type_info() const override
Definition: parameter.hpp:37
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28