---
title: set_route_label
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/dataflowdevg/udfrefp_23_0015.html
sourcePath: /source/zh/canncommercial/900/others/dataflowdevg/udfrefp_23_0015.html
indexId: 36a382a910068d7b548bcc1757758ec8dc3cdd3e7f5016f8a7cd10f8b14da60670
---
# set_route_label

#### 产品支持情况

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


#### 函数功能

设置路由的标签。

举例：udf1，udf2节点分别部署在device1和device2，且都有2个输出（out0和out1）。如用户希望每组out0和out1发送到同一个device上，需要给2个输出flowmsg设置相同的route_label。


#### 函数原型

```
set_route_label(self, route_label) -> None
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| route\_label | 输入 | 路由的标签，取值为0表示不使用。 |


#### 返回值

无


#### 异常处理

无


#### 约束说明

无
