get_size_func

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 registered function for calculating the size of the serialized memory based on the message type ID.

Prototype

1
get_size_func(msg_type)

Parameters

Parameter

Data Type

Description

msg_type

int

ID of the registered type.

Returns

Registered function for calculating the size of the serialized memory. If the function has not been registered, None is returned.

Examples

1
2
import dataflow as df
size_func = df.msg_type_register.get_size_func(1026)

Constraints

None