// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

#pragma once

#include "openvino/op/op.hpp"

namespace ov {
namespace op {
namespace v1 {
/// \brief Elementwise type conversion operation.
class OPENVINO_API ConvertLike : public Op {
public:
    OPENVINO_OP("ConvertLike", "opset1", op::Op, 1);
    BWDCMP_RTTI_DECLARATION;

    /// \brief Constructs a conversion operation.
    ConvertLike() = default;
    /// \brief Constructs a conversion operation.
    /// \param data  Node that produces the input tensor.
    /// \param like  Node which provides the target type information for the conversion.
    ConvertLike(const Output<Node>& data, const Output<Node>& like);

    void validate_and_infer_types() override;
    bool visit_attributes(AttributeVisitor& visitor) override;

    std::shared_ptr<Node> clone_with_new_inputs(const OutputVector& new_args) const override;

    bool constant_fold(OutputVector& output_values, const OutputVector& input_values) override;
};
}  // namespace v1
}  // namespace op
}  // namespace ov
