Function MSModelBuild

Function Documentation

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

Build the model from model file buffer so that it can run on a device.

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

返回

MSStatus.