DDeepin Developerfeat: Init commit
b83cb584创建于 2022年10月19日历史提交
/**
 * Copyright (c) 2025 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 foreach_maximum_list_proto.h
 * \brief
 */
#ifndef OPS_OP_PROTO_INC_FOREACH_MAXIMUM_LIST_H_
#define OPS_OP_PROTO_INC_FOREACH_MAXIMUM_LIST_H_

#include "graph/operator_reg.h"
namespace ge {
/**
 * @brief Apply maximum operation for each tensor in a tensor list with each tensor in another
 * tensor list in manner of element-wise
 * @par Inputs:
 * Two inputs:
 * @li x1: A tensor list containing multiple tensors
 * @li x2: Another tensor list containing multiple tensorsr
 * @par Outputs:
 * @li y: A tensor list which store the tensors whose value are maximum with the scalars in scalar list
 */
REG_OP(ForeachMaximumList)
    .DYNAMIC_INPUT(x1, TensorType({DT_FLOAT, DT_FLOAT16, DT_INT32, DT_BF16}))
    .DYNAMIC_INPUT(x2, TensorType({DT_FLOAT, DT_FLOAT16, DT_INT32, DT_BF16}))
    .DYNAMIC_OUTPUT(y, TensorType({DT_FLOAT, DT_FLOAT16, DT_INT32, DT_BF16}))
    .OP_END_FACTORY_REG(ForeachMaximumList)
} // namespace ge
#endif // OPS_OP_PROTO_INC_FOREACH_MAXIMUM_LIST_H_