Function MSTrainModelBuildFromFile

Function Documentation

MSStatus MSTrainModelBuildFromFile(MSModelHandle model, const char *model_path, MSModelType model_type, const MSContextHandle model_context, const MSTrainCfgHandle train_cfg)

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

参数
  • model[in] Model object handle.

  • model_path[in] Define the model path.

  • 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.

返回

MSStatus.