7 #include "ngraph/op/op.hpp"
38 virtual std::shared_ptr<Node>
39 clone_with_new_inputs(
const OutputVector& new_args)
const override;
41 bool is_relevant_to_shapes()
const;
42 void set_is_relevant_to_shapes(
bool is_relevant);
44 const PartialShape& get_partial_shape()
const {
return m_partial_shape; }
45 PartialShape& get_partial_shape() {
return m_partial_shape; }
46 void set_partial_shape(
const PartialShape& partial_shape)
48 m_partial_shape = partial_shape;
50 const element::Type& get_element_type()
const {
return m_element_type; }
51 void set_element_type(
const element::Type& element_type)
53 m_element_type = element_type;
57 PartialShape m_partial_shape;
58 element::Type m_element_type;
59 bool m_is_relevant_to_shapes;
64 using ParameterVector = std::vector<std::shared_ptr<op::Parameter>>;
74 static constexpr
DiscreteTypeInfo type_info{
"AttributeAdapter<ParameterVector>", 0};
78 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:75
An AttributeAdapter "captures" an attribute as an AT& and makes it available as a ValueAccessor<VAT>.
Definition: attribute_adapter.hpp:161
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:59
Class representing a shape that may be partially or totally dynamic.
Definition: partial_shape.hpp:34
Adapters will see visitor.
Definition: attribute_adapter.hpp:185
Definition: element_type.hpp:51
Root of all actual ops.
Definition: op.hpp:17
A function parameter.
Definition: parameter.hpp:22
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:25
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16