caffe源码解析:Blob<Dtype>::Reshape

Blob<Dtype>::Reshape(const vector<int>& shape) 功能:为blob分配内容空间 该函数一般在开辟空间内存时调用,如输入的data层,InputLayer<Dtype>::LayerSetUp中调用。 一般shape是(num, channel, width, height), 容量count = num*channel*width*height 是空间的
相关文章
相关标签/搜索