7 #include "ngraph/node.hpp"
8 #include "ngraph/op/op.hpp"
9 #include "ngraph/op/util/unary_elementwise_arithmetic.hpp"
31 NGRAPH_RTTI_DECLARATION;
45 virtual std::shared_ptr<Node>
46 clone_with_new_inputs(
const OutputVector& new_args)
const override;
49 const HostTensorVector& inputs)
const override;
52 RoundMode get_mode()
const {
return m_mode; }
60 std::ostream& operator<<(std::ostream& s,
const op::v5::Round::RoundMode& type);
72 static constexpr
DiscreteTypeInfo type_info{
"AttributeAdapter<op::v5::Round::RoundMode>",
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
Access an enum via a string.
Definition: attribute_adapter.hpp:168
A handle for one of a node's outputs.
Definition: node_output.hpp:33
Root of all actual ops.
Definition: op.hpp:17
Elementwise round operation. The output is round to the nearest integer for each value....
Definition: round.hpp:24
bool evaluate(const HostTensorVector &outputs, const HostTensorVector &inputs) const override
Evaluates the op on input_values putting results in output_values.
bool has_evaluate() const override
Allows to get information about availability of evaluate method for the current operation.
void validate_and_infer_types() override
Verifies that attributes and inputs are consistent and computes output shapes and element types....
Round()=default
Constructs a round operation.
Round(const Output< Node > &arg, const RoundMode mode)
Constructs a round operation.
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16