Skip to content

Commit a2c46a5

Browse files
committed
try to fix caffe protobuf update caused API compatible issues
1 parent d5c607f commit a2c46a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/caffe/util/io.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ bool ReadProtoFromBinaryFile(const char* filename, Message* proto) {
7272
CHECK_NE(fd, -1) << "File not found: " << filename;
7373
ZeroCopyInputStream* raw_input = new FileInputStream(fd);
7474
CodedInputStream* coded_input = new CodedInputStream(raw_input);
75-
coded_input->SetTotalBytesLimit(kProtoReadBytesLimit, 536870912);
75+
//coded_input->SetTotalBytesLimit(kProtoReadBytesLimit, 536870912);
76+
coded_input->SetTotalBytesLimit(kProtoReadBytesLimit);
7677

7778
bool success = proto->ParseFromCodedStream(coded_input);
7879

0 commit comments

Comments
 (0)