7 #include "ngraph/op/op.hpp"
8 #include "ngraph/runtime/host_tensor.hpp"
20 NGRAPH_RTTI_DECLARATION;
32 virtual std::shared_ptr<Node>
33 clone_with_new_inputs(
const OutputVector& new_args)
const override;
34 const element::Type& get_destination_type()
const {
return m_destination_type; }
35 void set_destination_type(
const element::Type& destination_type)
37 m_destination_type = destination_type;
39 const element::Type& get_convert_element_type()
const {
return m_destination_type; }
40 void set_convert_element_type(
const element::Type& destination_type)
42 m_destination_type = destination_type;
46 const HostTensorVector& inputs)
const override;
48 bool evaluate_lower(
const HostTensorVector& outputs)
const override;
49 bool evaluate_upper(
const HostTensorVector& outputs)
const override;
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
Definition: element_type.hpp:51
Root of all actual ops.
Definition: op.hpp:17
Elementwise type conversion operation.
Definition: convert.hpp:18
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....
bool evaluate(const HostTensorVector &outputs, const HostTensorVector &inputs) const override
Evaluates the op on input_values putting results in output_values.
Convert()=default
Constructs a conversion operation.
Convert(const Output< Node > &arg, const ngraph::element::Type &destination_type)
Constructs a conversion operation.
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16