LCOV - code coverage report
Current view: top level - legacy/ascend950/common - reduce_in.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 33.3 % 3 1
Test Date: 2026-08-18 17:47:01 Functions: 50.0 % 2 1

            Line data    Source code
       1              : /**
       2              :  * Copyright (c) 2025 Huawei Technologies Co., Ltd.
       3              :  * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
       4              :  * CANN Open Software License Agreement Version 2.0 (the "License").
       5              :  * Please refer to the License for details. You may not use this file except in compliance with the License.
       6              :  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
       7              :  * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
       8              :  * See LICENSE in the root of the software repository for the full text of the License.
       9              :  */
      10              : 
      11              : #ifndef HCCLV2_REDUCE_IN_H
      12              : #define HCCLV2_REDUCE_IN_H
      13              : #include <string>
      14              : #include "data_type.h"
      15              : #include "reduce_op.h"
      16              : namespace Hccl {
      17              : 
      18              : struct ReduceIn {
      19              :     DataType dataType;
      20              :     ReduceOp reduceOp;
      21           69 :     ReduceIn(DataType dataType, ReduceOp reduceOp) : dataType(dataType), reduceOp(reduceOp) {}
      22            0 :     std::string Describe() const
      23              :     {
      24              :         return StringFormat(
      25            0 :             "ReduceIn[dataType=%s, reduceOp=%s]", dataType.Describe().c_str(), reduceOp.Describe().c_str());
      26              :     }
      27              : };
      28              : 
      29              : } // namespace Hccl
      30              : #endif
        

Generated by: LCOV version 2.0-1