---
title: GetShape
description: 获取Tensor的具体形状。
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/msadg/mxvisionug_0479.html"
---

# GetShape

#### 函数功能

获取Tensor的具体形状。


#### 函数原型

```
std::vector<uint32_t> GetShape() const;
```


#### 返回参数说明

| 数据结构 | 说明 |
| --- | --- |
| std::vector<uint32\_t> | Tensor的形状。 |
