caffe message学习之BlobProto

来源:互联网 发布:跳跃网络推荐账号 编辑:程序博客网 时间:2024/06/05 12:41

github源码传送门,
这个message 也还比较简单,用来存储数据和梯度。
相关联的message有BlobShape.

message BlobProto {  optional BlobShape shape = 7;  repeated float data = 5 [packed = true];  repeated float diff = 6 [packed = true];  repeated double double_data = 8 [packed = true];  repeated double double_diff = 9 [packed = true];  // 4D dimensions -- deprecated.  Use "shape" instead.  optional int32 num = 1 [default = 0];  optional int32 channels = 2 [default = 0];  optional int32 height = 3 [default = 0];  optional int32 width = 4 [default = 0];}