制作multi_stage_meanfield.cpp时出现Caffe安装错误

时间:2017-03-16 19:21:32

标签: c++ deep-learning caffe

在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]);

有什么想法吗?

0 个答案:

没有答案