You are here: Start » AVLDL.DL_ReadCharacters_Unload Method

AVLDL.DL_ReadCharacters_Unload Method

Namespace:AvlNet.DeepLearning
Assembly:AvlDl.Net.dll

Syntax

public static void DL_ReadCharacters_Unload
(
	AvlNet.ReadCharactersModelId inModelId,
	bool inLeaveForRedeploy
)

Parameters

Name Type Range Default Description
inModelIdAvlNet.ReadCharactersModelId
inLeaveForRedeploybool

Description

This filter frees memory allocated for a model (mostly weights). It will not free memory allocated for executing models on specific device. Use this filter only if there is a risk of out-of-memory errors.

Setting inLeaveForRedeploy to false will unload the model completely, which means that further deploying the same model will take comparable amount of time as deploying the model for the first time. Setting inLeaveForRedeploy to true, will not free some information about the model stored in RAM which greatly speeds up further deployment of the same model. Memory allocated on device will be freed regardless.

See also