---
title: Format
description: "定义算子参数数据格式。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendcopapi/atlasascendc_api_07_0961.html
sourcePath: /source/zh/canncommercial/900/API/ascendcopapi/atlasascendc_api_07_0961.html
indexId: 1eec889193c12ed6174b6a2342572ad280084fea1bce1def78992ce41e0f348e76
---
# Format

#### 功能说明

定义算子参数数据格式。


#### 函数原型

```
OpParamDef &Format(std::vector<ge::Format> formats)
```


#### 参数说明

| 参数 | 输入/输出 | 说明 |
| --- | --- | --- |
| formats | 输入 | 算子参数数据格式，ge::Format请参考Format(https://www.hiascend.comdocument/detail/zh/canncommercial/900/maintenref/basicdataapi/atlasopapi\_07\_00515.html)。 |


#### 返回值说明

OpParamDef算子定义，OpParamDef请参考OpParamDef。


#### 约束说明

无
