You are here: Start » DLInvoke.DL_CleanDevice

DLInvoke.DL_CleanDevice

Frees memory allocated for executing a models on a specific device.

Namespace:Avl
Assembly:AvlNet.DL.Cpu.dll

Syntax

C++
C#
 
public static void DL_CleanDevice
(
	Optional<Avl.DeviceKind> inDeviceType,
	int inDeviceIndex
)

Parameters

Name Type Range Default Description
inDeviceTypeAtl.Optional<Avl.DeviceKind>A type of a device selected for the cleanup. If not set, device depending on version (CPU/GPU) of installed Deep Learning add-on is selected. Default value: atl::NIL.
inDeviceIndexintAn index of a device selected for the cleanup. Default value: 0.

See also