Class ov::op::v4::Range#

class Range : public ov::op::Op#

Range operation, analogous to arange() in Numpy.

Public Functions

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.

Parameters:
  • start – The tensor producing the start value. Must be a scalar of numeric element type.

  • stop – The tensor producing the stop value. Must be a scalar of numeric element type.

  • step – The tensor producing the step value. Must be a scalar of numeric element type.

  • output_type – The type of the output.

virtual void validate_and_infer_types() override#

Verifies that attributes and inputs are consistent and computes output shapes and element types. Must be implemented by concrete child classes so that it can be run any number of times.

Throws if the node is invalid.

virtual bool has_evaluate() const override#

Allows to get information about availability of evaluate method for the current operation.