---
title: get_format
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/atlasgeapi_07_0753.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/atlasgeapi_07_0753.html
indexId: 48fc653020d376c0fdfc898fdfea2c18e243e2c6617e0fc17a3ffabfc04679d972
---
# get_format

#### 产品支持情况

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


#### 功能说明

获取张量格式。


#### 函数原型

```
get_format() -> Format
```


#### 参数说明

无


#### 返回值说明

(Format)张量格式。


#### 约束说明

如果返回值不是有效的Format，抛出ValueError。
