9 #include "ngraph/op/op.hpp"
20 NGRAPH_RTTI_DECLARATION;
32 virtual std::shared_ptr<Node>
33 clone_with_new_inputs(
const OutputVector& new_args)
const override;
35 void set_needs_default_layout(
bool val) { m_needs_default_layout = val; }
36 bool needs_default_layout()
const {
return m_needs_default_layout; }
38 const HostTensorVector& inputs)
const override;
40 bool constant_fold(OutputVector& output_values,
41 const OutputVector& inputs_values)
override;
44 bool m_needs_default_layout{
false};
50 using ResultVector = std::vector<std::shared_ptr<op::Result>>;
60 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:61
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
A handle for one of a node's outputs.
Definition: node_output.hpp:33
Adapters will see visitor.
Definition: attribute_adapter.hpp:185
Root of all actual ops.
Definition: op.hpp:17
Definition: result.hpp:18
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....
bool has_evaluate() const override
Allows to get information about availability of evaluate method for the current operation.
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.
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16