We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5c607f commit a2c46a5Copy full SHA for a2c46a5
src/caffe/util/io.cpp
@@ -72,7 +72,8 @@ bool ReadProtoFromBinaryFile(const char* filename, Message* proto) {
72
CHECK_NE(fd, -1) << "File not found: " << filename;
73
ZeroCopyInputStream* raw_input = new FileInputStream(fd);
74
CodedInputStream* coded_input = new CodedInputStream(raw_input);
75
- coded_input->SetTotalBytesLimit(kProtoReadBytesLimit, 536870912);
+ //coded_input->SetTotalBytesLimit(kProtoReadBytesLimit, 536870912);
76
+ coded_input->SetTotalBytesLimit(kProtoReadBytesLimit);
77
78
bool success = proto->ParseFromCodedStream(coded_input);
79
0 commit comments