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

#### 产品支持情况

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


#### 函数功能

判断消息类型ID是否被注册过


#### 函数原型

```
registered(msg_type)
```


#### 参数说明

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


#### 返回值

bool，True表示注册过，False表示没有注册


#### 调用示例

```
import dataflow as df
registered = df.msg_type_register.registered(1026)
```


#### 约束说明

无
