TIEVisionNNetBase.setDevice
Declaration
procedure setDevice(backend: TIEVisionNNBackend; device: TIEVisionNNDevice); safecall;
Description
Set neural net execution backend and device (CPU or GPU).
Parameter | Description |
backend | Backend to use |
device | Physical device to use |
| Demos\IEVision\NeuralNet\NeuralNet.dpr |
// neural net will be executed by CPU
nnet.setDevice(ievNNBackend_OpenCV, ievNNDevice_CPU);
// neural net will be executed by GPU (using OpenCL)
nnet.setDevice(ievNNBackend_OpenCV, ievNNDevice_OpenCL);