昇腾社区首页
中文
注册

GetMsgType

函数功能

获取FlowMsg的消息类型。

函数原型

1
MsgType GetMsgType() const

参数说明

返回值

返回FlowMsg的消息类型。

1
2
3
4
5
6
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_TENSOR_LIST = 2,          // raw data msg type
    MSG_TYPE_USER_DEFINE_START = 1024  // usr define type start
};

异常处理

无。

约束说明

无。