LCOV - code coverage report
Current view: top level - adump/impl - dump_tensor.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 19 19
Test Date: 2026-07-28 10:54:24 Functions: 100.0 % 9 9

            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              : #include "dump_tensor.h"
      11              : #include "log/hdc_log.h"
      12              : 
      13              : namespace Adx {
      14              : 
      15           83 : int32_t DumpTensor::GetDataType() const
      16              : {
      17           83 :     return dataType_;
      18              : }
      19              : 
      20           83 : int32_t DumpTensor::GetFormat() const
      21              : {
      22           83 :     return format_;
      23              : }
      24              : 
      25           80 : std::vector<int64_t> DumpTensor::GetShape() const
      26              : {
      27           80 :     return shape_;
      28              : }
      29              : 
      30           72 : std::vector<int64_t> DumpTensor::GetOriginShape() const
      31              : {
      32           72 :     return originShape_;
      33              : }
      34              : 
      35          133 : size_t DumpTensor::GetSize() const
      36              : {
      37          133 :     return size_;
      38              : }
      39              : 
      40          152 : const void *DumpTensor::GetAddress() const
      41              : {
      42          152 :     return address_;
      43              : }
      44              : 
      45            3 : void DumpTensor::SetAddress(const void *address)
      46              : {
      47            3 :     address_ = address;
      48            3 : }
      49              : 
      50           48 : AddressType DumpTensor::GetAddressType() const
      51              : {
      52           48 :     return addrType_;
      53              : }
      54              : 
      55           48 : uint32_t DumpTensor::GetArgsOffSet() const
      56              : {
      57           48 :     return argsOffSet_;
      58              : }
      59              : } // namespace Adx
        

Generated by: LCOV version 2.0-1