---
title: shape
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/llmdatadistdev/llmpr_42_0139.html
sourcePath: /source/zh/canncommercial/900/others/llmdatadistdev/llmpr_42_0139.html
indexId: 3c45ba050adfdbf6ccf7a281da0d4110ac0c141106a04161cc44989d28406cee70
---
# shape

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | x |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | x |
| Atlas 推理系列产品 | x |
| Atlas 训练系列产品 | x |


说明：针对 Atlas A2 训练系列产品 / Atlas A2 推理系列产品 ，仅支持Atlas 800I A2 推理服务器、A200I A2 Box 异构组件。


#### 函数功能

获取shape属性值。


#### 函数原型

```
shape()
```


#### 参数说明

无


#### 调用示例

```
shape = tensor_desc.shape
```


#### 返回值

返回shape。


#### 约束说明

无
