Function MSExportModel

Function Documentation

MSStatus MSExportModel(MSModelHandle model, MSModelType model_type, const char *model_file, MSQuantizationType quantization_type, bool export_inference_only, char **output_tensor_name, size_t num)

Export training model from file. Only valid for Lite Train.

Parameters
  • model[in] The model data.

  • model_type[in] The model file type.

  • model_file[in] The exported model file.

  • quantization_type[in] The quantification type.

  • export_inference_only[in] Whether to export a reasoning only model.

  • output_tensor_name[in] The set the name of the output tensor of the exported reasoning model, default as empty, and export the complete reasoning model.

  • num[in] The number of output_tensor_name.

Returns

MSStatus.