You are here: Start » FILDL.DL_LocatePoints_Unload Method

FILDL.DL_LocatePoints_Unload Method

Namespace:FilNet.DeepLearning
Assembly:FilDl.Net.dll

Syntax

public static void DL_LocatePoints_Unload
(
	FilNet.LocatePointsModelId inModelId,
	bool inLeaveForRedeploy
)

Parameters

Name Type Range Default Description
inModelIdFilNet.LocatePointsModelId
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