unloadModel static method

void unloadModel(
  1. DocumentModel documentModel,
  2. ProcessingUnit processingUnit
)

Unloads a model from memory.

param documentModel The AI model to be unloaded. param processingUnit The processing unit used for the model. throws DocumentException An error has occurred during Document Library execution.

Implementation

static void unloadModel(DocumentModel documentModel, ProcessingUnit processingUnit) {
  var err = documentSDK.id3DocumentLibrary_UnloadModel(documentModel.value, processingUnit.value);
  if (err != DocumentError.success.value) {
    throw DocumentException(err);
  }
}