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. This will be ievNNBackend_OpenCV |
device | Physical device to use. This should be set to ievNNDevice_CPU |
Note: Use of ievNNDevice_OpenCL and ievNNDevice_OpenCL_FP16 should be avoided
| Demos\IEVision\NeuralNet\NeuralNet.dpr |
// neural net will be executed by CPU
nnet.setDevice(ievNNBackend_OpenCV, ievNNDevice_CPU);