首页 > 解决方案 > 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.

标签: c++opencvgpuopencl

解决方案


如果您想在支持 OpenCL 计算的不同设备之间切换,请查看OPENCV_OPENCL_DEVICEflag。

来源:https ://github.com/opencv/opencv/wiki/OpenCL-optimizations#opencv-opencl-configuration-options


推荐阅读