get_msg_type

Applicability

Product

Supported

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product

x

Atlas training product

x

Function Description

Obtains the message type of FlowMsg.

Prototype

1
get_msg_type(self)

Parameters

None

Returns

Message type of class FlowMsg

1
2
3
4
5
import dataflow.flow_func.flow_func as ff
# The following values are returned:
ff.MSG_TYPE_TENSOR_DATA
ff.MSG_TYPE_RAW_MSG
# If the value is greater than or equal to 1,024, the type is defined by a user.

Exception Handling

None

Constraints

None