19 #include "ngraph/node.hpp"
20 #include "ngraph/op/op.hpp"
32 NGRAPH_RTTI_DECLARATION;
45 Range(
const Output<Node>& start,
46 const Output<Node>&
stop,
47 const Output<Node>& step,
53 virtual std::shared_ptr<Node>
54 clone_with_new_inputs(
const OutputVector& new_args)
const override;
55 bool evaluate(
const HostTensorVector& outputs,
56 const HostTensorVector& inputs)
const override;
68 static constexpr NodeTypeInfo type_info{
"Range", 0};
69 const NodeTypeInfo&
get_type_info()
const override {
return type_info; }
81 Range(
const Output<Node>& start,
82 const Output<Node>&
stop,
83 const Output<Node>& step);
88 virtual std::shared_ptr<Node>
89 clone_with_new_inputs(
const OutputVector& new_args)
const override;
90 bool evaluate(
const HostTensorVector& outputs,
91 const HostTensorVector& inputs)
const override;
Definition: element_type.hpp:61
void validate_and_infer_types() override
Verifies that attributes and inputs are consistent and computes output shapes and element types....
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28
Range()=default
Constructs an unitialized range operation.
Range(const Output< Node > &start, const Output< Node > &stop, const Output< Node > &step, element::Type output_type)
Constructs a range operation.
const NodeTypeInfo & get_type_info() const override
Definition: range.hpp:69
Range()=default
Constructs an unitialized range operation.
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:70
Range operation, analogous to range() in Python.
Definition: range.hpp:66
void stop()
stop the timer without writing the data to the log file. To write the data call the write method Call...
void validate_and_infer_types() override
Verifies that attributes and inputs are consistent and computes output shapes and element types....
Range(const Output< Node > &start, const Output< Node > &stop, const Output< Node > &step)
Constructs a range operation.
Range operation, analogous to arange() in Numpy.
Definition: range.hpp:30
Root of all actual ops.
Definition: op.hpp:29