Class ov::op::v9::Eye

class Eye : public ov::op::Op

Tensor Eye operation.

Public Functions

Eye(const Output<Node> &num_rows, const Output<Node> &num_columns, const Output<Node> &diagonal_index, const Output<Node> &batch_shape, const ov::element::Type &out_type)

Constructs a Eye operation.

Parameters
  • num_rowsNode producing the tensor with row number.

  • num_columnsNode producing the tensor with column number.

  • diagonal_indexNode producing the tensor with the index of diagonal with ones.

  • batch_shapeNode producing the tensor with batch shape.

  • out_typeOutput type of the tensor.

Eye(const Output<Node> &num_rows, const Output<Node> &num_columns, const Output<Node> &diagonal_index, const ov::element::Type &out_type)

Constructs a Eye operation without batch_shape.

Parameters
  • num_rowsNode producing the tensor with row number.

  • num_columnsNode producing the tensor with column number.

  • diagonal_indexNode producing the tensor with the index of diagonal with ones.

  • out_typeOutput type of the tensor.

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.

inline const ov::element::Type &get_out_type() const
Returns

The output tensor type.

virtual bool has_evaluate() const override

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