转载请注明出处: http://www.cnblogs.com/darkknightzh/p/6015990.html BatchNorm具体网上搜索. caffe中batchNorm层是通过BatchNorm+Scale实现的,但是默认没有bias.torch中的BatchNorm层使用函数SpatialBatchNormalization实现,该函数中有weight和bias. 如下代码: local net = nn.Sequential() net:add(nn.SpatialBatch…
下载caffe-local,解压缩; 修改makefile.config:我是将cuudn注释掉,去掉cpu_only的注释; make all make test(其中local_test出错,将文件中gpu部分注释掉即可) make runtest 将python路径在.bashrc中更改: export PYTHONPATH=/home/crw/caffe-local/python:$PYTHONPATH source .bashrc 或者直接vi .bashrc,在文件中更改; make…