19 #include "ngraph/op/op.hpp"
20 #include "ngraph/runtime/host_tensor.hpp"
32 NGRAPH_RTTI_DECLARATION;
44 virtual std::shared_ptr<Node>
45 clone_with_new_inputs(
const OutputVector& new_args)
const override;
46 const element::Type& get_destination_type()
const {
return m_destination_type; }
47 void set_destination_type(
const element::Type& destination_type)
49 m_destination_type = destination_type;
51 const element::Type& get_convert_element_type()
const {
return m_destination_type; }
52 void set_convert_element_type(
const element::Type& destination_type)
54 m_destination_type = destination_type;
58 const HostTensorVector& inputs)
const override;
59 bool evaluate_lower(
const HostTensorVector& outputs)
const override;
60 bool evaluate_upper(
const HostTensorVector& outputs)
const override;
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
Definition: element_type.hpp:61
Root of all actual ops.
Definition: op.hpp:29
Elementwise type conversion operation.
Definition: convert.hpp:30
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:28