get_msg_type

Applicable Products

Product

Supported

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

x

Atlas inference products

x

Atlas training products

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