Function MSModelPredict

Function Documentation

MSStatus MSModelPredict(MSModelHandle model, const MSTensorHandleArray inputs, MSTensorHandleArray *outputs, const MSKernelCallBackC before, const MSKernelCallBackC after)

Inference model.

Parameters
  • model[in] Model object handle.

  • inputs[in] The array that includes all input tensor handles.

  • outputs[out] The array that includes all output tensor handles.

  • before[in] CallBack before predict.

  • after[in] CallBack after predict.

Returns

MSStatus.