DocumentLibrary.unloadModel Method

Module: DocumentLibrary

Definition

Unloads a model from memory.

@staticmethod
unload_model(document_model: DocumentModel, processing_unit: ProcessingUnit) -> None

Parameters

document_model DocumentModel
in The AI model to be unloaded.

processing_unit ProcessingUnit
in The processing unit used for the model.

Exceptions

An error has occurred during Document Library execution.
static void unloadModel(DocumentModel documentModel, ProcessingUnit processingUnit)

Parameters

documentModel DocumentModel
in The AI model to be unloaded.

processingUnit ProcessingUnit
in The processing unit used for the model.

Exceptions

An error has occurred during Document Library execution.
public static void UnloadModel(DocumentModel documentModel, ProcessingUnit processingUnit)

Parameters

documentModel DocumentModel
in The AI model to be unloaded.

processingUnit ProcessingUnit
in The processing unit used for the model.

Exceptions

An error has occurred during Document Library execution.
public static void unloadModel(DocumentModel documentModel, ProcessingUnit processingUnit) throws DocumentException

Parameters

documentModel DocumentModel
in The AI model to be unloaded.

processingUnit ProcessingUnit
in The processing unit used for the model.

Exceptions

An error has occurred during Document Library execution.
public static func unloadModel(documentModel: DocumentModel, processingUnit: ProcessingUnit) throws

Parameters

documentModel DocumentModel
in The AI model to be unloaded.

processingUnit ProcessingUnit
in The processing unit used for the model.

Exceptions

An error has occurred during Document Library execution.
int id3DocumentLibrary_UnloadModel (
    id3DocumentModel eDocumentModel,
    id3DocumentProcessingUnit eProcessingUnit)

Parameters

eDocumentModel id3DocumentModel
in The AI model to be unloaded.

in The processing unit used for the model.

Returns

int
An error code.
See id3DocumentError file for the list of possible error codes.