Function MSTrainModelBuild

Function Documentation

MSStatus MSTrainModelBuild(MSModelHandle model, const void *model_data, size_t data_size, MSModelType model_type, const MSContextHandle model_context, const MSTrainCfgHandle train_cfg)

Build the train model from model buffer so that it can run on a device. Only valid for Lite Train.

Parameters
  • model[in] Model object handle.

  • model_data[in] Define the buffer read from a model file.

  • data_size[in] Define bytes number of model file buffer.

  • model_type[in] Define The type of model file.

  • model_context[in] Define the context used to store options during execution.

  • train_cfg[in] Define the config used by training.

Returns

MSStatus.