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

#### 产品支持情况

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


#### 函数功能

设置FlowMsg的消息类型。


#### 函数原型

```
set_msg_type(self, msg_type) -> None
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| msg\_type | 输入 | FlowMsg的消息类型。用户自定义类型范围为：[1204, 65535) |


#### 返回值

无


#### 异常处理

无


#### 约束说明

无
