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 99 : int32_t DumpTensor::GetDataType() const { return dataType_; }
16 :
17 99 : int32_t DumpTensor::GetFormat() const { return format_; }
18 :
19 96 : std::vector<int64_t> DumpTensor::GetShape() const { return shape_; }
20 :
21 72 : std::vector<int64_t> DumpTensor::GetOriginShape() const { return originShape_; }
22 :
23 149 : size_t DumpTensor::GetSize() const { return size_; }
24 :
25 184 : const void* DumpTensor::GetAddress() const { return address_; }
26 :
27 3 : void DumpTensor::SetAddress(const void* address) { address_ = address; }
28 :
29 48 : AddressType DumpTensor::GetAddressType() const { return addrType_; }
30 :
31 64 : uint32_t DumpTensor::GetArgsOffSet() const { return argsOffSet_; }
32 : } // namespace Adx
|