how work on cpu mode
The document says it can work in CPU mode,but how?
ristretto work on cpu mode , set "cpu=0" ?
// 1.不加 --gpu=x,x,x,x,x 选项 // 2.使用--gpu=all 选项 如果计算机无CUDA设备,则设置为无GPU模式,仅使用CPU
void Quantization::SetGpu() {
// Parse GPU ids or use all available devices
vector
// Set device id and mode if (gpus.size() != 0) { LOG(INFO) << "Use GPU with device ID " << gpus[0]; Caffe::SetDevice(gpus[0]); Caffe::set_mode(Caffe::GPU); } else { LOG(INFO) << "Use CPU."; Caffe::set_mode(Caffe::CPU); } }
l 选项 如果计算机无CUDA设备,则设置为无GPU模式,仅使
thanks