RunFlowModel

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

Runs a specified model synchronously. This function is called by Proc.

Prototype

1
2
int32_t RunFlowModel(const char *modelKey, const std::vector<std::shared_ptr<FlowMsg>> &inputMsgs,
std::vector<std::shared_ptr<FlowMsg>> &outputMsgs, int32_t timeout)

Command-Line Options

Parameter

Input/Output

Description

modelKey

Input

Specified model key, which is the same as name specified in AddInvokedClosure.

inputMsgs

Input

Input for the model.

outputMsgs

Output

Output of model execution.

timeout

Input

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

Returns

Troubleshooting

None

Constraints

None