run_flow_model

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

Runs a specified model synchronously.

Prototype

1
run_flow_model(self, model_key:str, input_msgs: List[FlowMsg], timeout: int) -> Tuple[int, FlowMsg]

Parameters

Parameter

Input/Output

Description

model_key

Input

Specified model key. When C++ is used to develop DataFlow, the value of this parameter must be the same as that of name specified in AddInvokedClosure.

input_msgs

Input

Input for the model.

timeout

Input

Model execution waiting timeout, in ms. The value -1 means no timeout limit.

Returns

Exception Handling

None

Constraints

None