Class ov::op::v0::Range

class Range : public ov::op::Op

Range operation, analogous to range() in Python.

Public Functions

Range() = default

Constructs an unitialized range operation.

Range(const Output<Node> &start, const Output<Node> &stop, const Output<Node> &step)

Constructs a range operation.

Parameters
  • start – The tensor producing the start value. Must be a scalar of integer element type, and same element type as stop and step.

  • stop – The tensor producing the stop value. Must be a scalar of integer element type, and same element type as start and step.

  • step – The tensor producing the step value. Must be a scalar of integer element type, and same element type as start and stop.

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.