19 #include "ngraph/node.hpp"
20 #include "ngraph/op/op.hpp"
21 #include "ngraph/op/util/unary_elementwise_arithmetic.hpp"
43 NGRAPH_RTTI_DECLARATION;
57 virtual std::shared_ptr<Node>
58 clone_with_new_inputs(
const OutputVector& new_args)
const override;
61 const HostTensorVector& inputs)
const override;
63 RoundMode get_mode()
const {
return m_mode; }
70 std::ostream& operator<<(std::ostream& s,
const op::v5::Round::RoundMode& type);
82 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:171
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:71
Access an enum via a string.
Definition: attribute_adapter.hpp:178
A handle for one of a node's outputs.
Definition: node_output.hpp:42
Root of all actual ops.
Definition: op.hpp:29
Elementwise round operation. The output is round to the nearest integer for each value....
Definition: round.hpp:36
bool evaluate(const HostTensorVector &outputs, const HostTensorVector &inputs) const override
Evaluates the op on input_values putting results in output_values.
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:28