---
title: GetSize
description: "获取Tensor的大小。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0480.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0480.html
indexId: 67782cb91efc6c8e39443d9cda9081bac792461f680e528b278b9aa55d0a04ff102
---
# GetSize

#### 函数功能

获取Tensor的大小。


#### 函数原型

```
uint32_t GetSize() const;
```


#### 返回参数说明

| 数据结构 | 说明 |
| --- | --- |
| uint32\_t | Tensor的大小。 |
