RegisterMultiFunc

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

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