* 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.
*/
* \file acosh_grad_proto.h
* \brief AcoshGrad GE IR 图模式注册
*/
#ifndef OPS_OP_PROTO_INC_ACOSHGRAD_H_
#define OPS_OP_PROTO_INC_ACOSHGRAD_H_
#include "graph/operator_reg.h"
#include "graph/types.h"
namespace ge {
*@brief AcoshGrad: z = dy / sqrt(y² - 1), reverse gradient of acosh.
*@par Inputs:
*Two inputs:
* @li y: A Tensor. Must be float16, bfloat16, or float32. Original input of forward acosh, domain ≥ 1.
* @li dy: A Tensor. Must be float16, bfloat16, or float32. Upstream gradient, same shape/dtype as y.
*
*@par Outputs:
*z: A Tensor. Must be float16, bfloat16, or float32. Reverse gradient, same shape/dtype as y.
*
*@par Third-party framework compatibility:
*Compatible with TensorFlow AcoshGrad.
*/
REG_OP(AcoshGrad)
.INPUT(y, TensorType({DT_FLOAT16, DT_BF16, DT_FLOAT}))
.INPUT(dy, TensorType({DT_FLOAT16, DT_BF16, DT_FLOAT}))
.OUTPUT(z, TensorType({DT_FLOAT16, DT_BF16, DT_FLOAT}))
.OP_END_FACTORY_REG(AcoshGrad)
}
#endif