Class ov::op::v7::Roll#

class Roll : public ov::op::Op#

Tensor roll operation.

Public Functions

Roll(const Output<Node> &data, const Output<Node> &shift, const Output<Node> &axes)#

Constructs a roll operation.

Parameters:
  • data – Node producing the tensor to be shifted.

  • shift – Node producing the 0D or 1D tensor which specifies the number of places by which the elements are shifted.

  • axes – Node producing the 0D or 1D tensor which specifies axes along which elements are shifted.

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.