CreateMultiFuncWithQ

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

Creates a multi-function processing object and processing function whose input type is FlowMsgQueue. This function is used internally by the framework and shall not be directly invoked by users.

Prototype

This function is used to create FlowFunc processing objects and processing functions, with FlowMsgQueue as the streaming input parameter.

1
2
int32_t CreateMultiFuncWithQ(std::shared_ptr<MetaMultiFunc> &multiFunc,
std::map<AscendString, PROC_FUNC_WITH_CONTEXT_Q> &procFuncWithQMap) const

Parameters

Parameter

Input/Output

Description

multiFunc

Output

Multi-func instance object

procFuncWithQMap

Output

Multi-FlowFunc processing function whose input type is FlowMsgQueue.

Returns

  • FLOW_FUNC_SUCCESS: success
  • Other values: failure

Exception Handling

None

Constraints

None