Class ov::op::v1::ConvertLike#

class ConvertLike : public ov::op::Op#

Elementwise type conversion operation.

Public Functions

ConvertLike() = default#

Constructs a conversion operation.

ConvertLike(const Output<Node> &data, const Output<Node> &like)#

Constructs a conversion operation.

Parameters:
  • dataNode that produces the input tensor.

  • likeNode which provides the target type information for the conversion.

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.