c++ - How do you choose the device to perform operations on opencv-dnn?
问题描述
How do you choose the device to perform operations on opencv-dnn?
In my environment, there are several connected devices that can run either opencl or the Inference engine.
解决方案
如果您想在支持 OpenCL 计算的不同设备之间切换,请查看OPENCV_OPENCL_DEVICE
flag。
来源:https ://github.com/opencv/opencv/wiki/OpenCL-optimizations#opencv-opencl-configuration-options