Class ov::op::v6::GatherElements

class GatherElements : public ov::op::Op

GatherElements operation.

Public Functions

GatherElements(const Output<Node> &data, const Output<Node> &indices, const int64_t axis)

Constructs a GatherElements operation.

Parameters
  • dataNode producing data that are gathered

  • indicesNode producing indices by which the operation gathers elements

  • axis – specifies axis along which indices are specified

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.