RegisterMultiFunc

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

Registers multiple FlowFunc.

You are advised to use MetaMultiFunc Registration Function Macro to register FlowFunc.

Prototype

  • This function is used when a common FlowFunc is registered, that is, when the input of the FlowFunc is flowMsg.
    1
    bool RegisterMultiFunc(const char *flowFuncName, const MULTI_FUNC_CREATOR_FUNC &funcCreator) noexcept
    
  • This function is used when a streaming input FlowFunc (the function's input parameter is a queue) is registered, that is, when the input of the FlowFunc is flowMsgQueue.
    1
    bool RegisterMultiFunc(const char *flowFuncName, const MULTI_FUNC_WITH_Q_CREATOR_FUNC &funcWithQCreator) noexcept
    

Parameters

Parameter

Input/Output

Description

flowFuncName

Input

Name of Flowfunc. The value cannot be NULL and must end with \0.

funcCreator/funcWithQCreator

Input

Creation function of multiple FlowFunc.

Returns

  • true
  • false

Exception Handling

None

Constraints

None