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

#### 产品支持情况

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


#### 函数功能

根据消息类型ID获取注册的反序列化函数。


#### 函数原型

```
get_deserialize_func(msg_type)
```


#### 参数说明

| 参数名称 | 数据类型 | 取值说明 |
| --- | --- | --- |
| msg\_type | int | 注册的类型ID。 |


#### 返回值

注册的反序列化函数，没有注册过返回None。


#### 调用示例

```
import dataflow as df
deserialize_func = df.msg_type_register.get_deserialize_func(1026)
```


#### 约束说明

无
