Function MSModelSetTrainMode

Function Documentation

MSStatus MSModelSetTrainMode(const MSModelHandle model, bool train)

Set the model running mode. Only valid for Iot.

Set the model running mode. Only valid for Lite Train.

Parameters
  • model[in] Model object handle.

  • train[in] True means model runs in Train Mode, otherwise Eval Mode.

  • model[in] Model object handle.

  • train[in] True means model runs in Train Mode, otherwise Eval Mode.

Returns

Status of operation.

Returns

MSStatus.