caffe源码分析 vector<Blob<Dtype>*>& bottom

Blob:4个维度 n x c x h x w;

bottom[0] 、bottom[1]代表该层有几个输入。

bottom[0]->count(): 输入中,元素的总维数(个数)

bottom[0]->nums(): 输入中,块(block)的个数,该参数还对应batch_size,即同时输入了几张图片 
c:是卷积核(filter)的个数,每个卷积核产生一个通道的输出;在输入层,c直接就是图像的通道数; 
还有一个变量,dim;:每个块的维度(元素个数)

形象化: 
| xxxxx | xxxxx | xxxxx | xxxxx | xxxxx | xxxxx | xxxxx | xxxxx |

上图,nums = 8, dim = 5, count = 5*8 =40;

原文地址:https://www.cnblogs.com/Yu-FeiFei/p/6815809.html