Function MSExportModelBuffer

Function Documentation

MSStatus MSExportModelBuffer(MSModelHandle model, MSModelType model_type, char **model_data, size_t *data_size, MSQuantizationType quantization_type, bool export_inference_only, char **output_tensor_name, size_t num)

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

Parameters
  • model[in] The model data.

  • model_type[in] The model file type.

  • model_data[in] The exported model buffer.

  • data_size[in] The exported model buffer size.

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