您的位置:首页 > Web前端

Caffe: net.set_mode_gpu VS. caffe.set_mode_gpu

2016-03-04 18:07 477 查看
In the previous caffe version, I use the net.set_mode_gpu in python. But, the new caffe codes remove the set_mode_gpu function from net, and instead use the caffe.set_mode_gpu.

However, it is noteworthy that the Classify function should be given a ‘gpu’ parameter, as following:

net = caffe.Classifier(‘deploy.prototxt’, ‘caffemodel’, gpu=True);

If you do not set the gpu with True, the default parameter is ‘False’, and the codes will still run on CPU mode.

link
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: