ResetFlowFuncState

Applicability

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

In the fault recovery scenario, quickly resets FlowFunc to the initial state.

Prototype

1
int32_t ResetFlowFuncState(const std::shared_ptr<MetaParams> &params)

Command-Line Options

Parameter

Input/Output

Description

params

Input

Multi-func reset status parameter information.

Returns

Troubleshooting

None

Constraints

This API is a virtual function. When FlowFunc of the user does not implement the ResetFlowFuncState function, the framework returns FLOW_FUNC_ERR_NOT_SUPPORT by default (the current FlowFunc does not support this operation). Delete the created FlowFunc, create another FlowFunc, and then call the Init API for initialization.