---
title: GetVal(std::vector &value)
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/dataflowdevg/udfrefc_23_00013.html
sourcePath: /source/zh/canncommercial/900/others/dataflowdevg/udfrefc_23_00013.html
indexId: f695492bc4aebd45d8c24d548ff00f653348b5e82ea51274674c3b0165e99d3371
---
# GetVal(std::vector<bool> &value)

#### 产品支持情况

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


#### 函数功能

获取list bool类型的属性值。


#### 函数原型

```
int32_t GetVal(std::vector<bool> &value) const = 0
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| Value | 输出 | 获取的list bool类型属性值。 |


#### 返回值

- 0：SUCCESS。
- other：FAILED，具体请参考  UDF错误码
。


#### 异常处理

无。


#### 约束说明

无。
