/**
 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
 * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
 * CANN Open Software License Agreement Version 2.0 (the "License").
 * Please refer to the License for details. You may not use this file except in compliance with the License.
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
 * See LICENSE in the root of the software repository for the full text of the License.
 *
 * Generated By CANNBot
 */

/*!
 * \file acos_grad_proto.h
 * \brief AcosGrad operator prototype (aligned with canndev REG_OP)
 */
#ifndef OPS_OP_ACOS_GRAD_PROTO_H_
#define OPS_OP_ACOS_GRAD_PROTO_H_

#include "graph/operator_reg.h"
#include "graph/operator.h"

namespace ge {
/**
* @brief Computes gradients for Acos operation. Support broadcasting operations.
*
* @par Inputs:
* Two inputs, including:
* @li y: A tensor of type float16 or float32 or bfloat16.
*        Semantically the forward input of Acos (per TensorFlow convention).
* @li dy: A tensor with the same dtype as "y". Upstream gradient. \n
*
* @attention Constraints:
* "dy" has the same shape with "y".
*
* @par Outputs:
* z: A tensor. Has the same dtype as "y". Gradient w.r.t. the original input of Acos.
*
* @par Third-party framework compatibility
* Compatible with the TensorFlow operator AcosGrad.
*/
REG_OP(AcosGrad)
    .INPUT(y, TensorType({DT_BF16, DT_FLOAT16, DT_FLOAT}))
    .INPUT(dy, TensorType({DT_BF16, DT_FLOAT16, DT_FLOAT}))
    .OUTPUT(z, TensorType({DT_BF16, DT_FLOAT16, DT_FLOAT}))
    .OP_END_FACTORY_REG(AcosGrad)
} // namespace ge
#endif // OPS_OP_ACOS_GRAD_PROTO_H_