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

#### 产品支持情况

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


#### 函数功能

获取FlowMsg的消息类型。


#### 函数原型

```
MsgType GetMsgType() const
```


#### 参数说明

无。


#### 返回值

返回FlowMsg的消息类型。

```
enum class MsgType : uint16_t {
    MSG_TYPE_TENSOR_DATA = 0,          // tensor data msg type
    MSG_TYPE_RAW_MSG = 1,              // raw data msg type
    MSG_TYPE_USER_DEFINE_START = 1024  // user define type start
};
```


#### 异常处理

无。


#### 约束说明

无。
