run_flow_model

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

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

Timeout for waiting for model execution, in ms. The value -1 indicates that the execution never times out.

Returns

Exception Handling

None

Constraints

None