---
title: GetListFloat
description: "获取list_float32类型的属性值。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/basicdataapi/atlasopapi_07_00146.html
sourcePath: /source/zh/canncommercial/900/maintenref/basicdataapi/atlasopapi_07_00146.html
indexId: 34bc7233df056e55a44effc30c2f5d2def97ad0928931d7f9585bea3a9ea766e78
---
# GetListFloat

#### 函数功能

获取list_float32类型的属性值。


#### 函数原型

```
const TypedContinuousVector<float> *GetListFloat(const size_t index) const
```


#### 参数说明

| 参数 | 输入/输出 | 说明 |
| --- | --- | --- |
| index | 输入 | 属性在IR原型定义中以及在OP\_IMPL注册中的索引。 |


#### 返回值说明

指向属性值的指针。


#### 约束说明

无。


#### 调用示例

```
const RuntimeAttrs * runtime_attrs = kernel_context->GetAttrs();
const TypedContinuousVector<float> *attr0 = runtime_attrs->GetListFloat(0);
```
