在Ubuntu 16.04上安装caffe,运行命令“make”时遇到以下错误:
src/caffe/layers/multi_stage_meanfield.cpp:72:13: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 3 has type ‘float*’ [-Wformat=]
fscanf(pFile, "%lf", &this->blobs_[0]->mutable_cpu_data()[i * channels_ + i]);
如果我将“%lf”更改为“%f”,那么我会遇到另一个错误,即
src/caffe/layers/multi_stage_meanfield.cpp:72:13: warning: format ‘%f’ expects argument of type ‘float*’, but argument 3 has type ‘double*’ [-Wformat=]
fscanf(pFile, "%f", &this->blobs_[0]->mutable_cpu_data()[i * channels_ + i]);
有什么想法吗?