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];
optional
int32 num =
1 [
default =
0];
optional
int32 channels =
2 [
default =
0];
optional
int32 height =
3 [
default =
0];
optional
int32 width =
4 [
default =
0];
}