21 #include "ngraph/op/op.hpp"
44 virtual std::shared_ptr<Node>
45 clone_with_new_inputs(
const OutputVector& new_args)
const override;
47 void set_needs_default_layout(
bool val) { m_needs_default_layout = val; }
48 bool needs_default_layout()
const {
return m_needs_default_layout; }
50 const HostTensorVector& inputs)
const override;
51 bool constant_fold(OutputVector& output_values,
52 const OutputVector& inputs_values)
override;
55 bool m_needs_default_layout{
false};
61 using ResultVector = std::vector<std::shared_ptr<op::Result>>;
71 static constexpr
DiscreteTypeInfo type_info{
"AttributeAdapter<ResultVector>", 0};
const DiscreteTypeInfo & get_type_info() const override
type info enables identification of the value accessor, as well as is_type and as_type.
Definition: result.hpp:72
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
A handle for one of a node's outputs.
Definition: node_output.hpp:42
Adapters will see visitor.
Definition: attribute_adapter.hpp:194
Root of all actual ops.
Definition: op.hpp:29
Definition: result.hpp:30
Result(const Output< Node > &arg, bool needs_default_layout=false)
Allows a value to be used as a function result.
void validate_and_infer_types() override
Verifies that attributes and inputs are consistent and computes output shapes and element types....
Result()=default
Allows a value to be used as a function result.
bool evaluate(const HostTensorVector &outputs, const HostTensorVector &inputs) const override
Evaluates the op on input_values putting results in output_values.
const NodeTypeInfo & get_type_info() const override
Definition: result.hpp:33
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28