From b57d8adf42ba138cc11686da1802533d2923d2f1 Mon Sep 17 00:00:00 2001 From: Sergio Guadarrama Date: Mon, 7 Apr 2014 17:36:27 -0700 Subject: [PATCH] Doubled protobuf Bytes Limit --- src/caffe/util/io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/caffe/util/io.cpp b/src/caffe/util/io.cpp index e1e3c3a..122d1a7 100644 --- a/src/caffe/util/io.cpp +++ b/src/caffe/util/io.cpp @@ -56,7 +56,7 @@ bool ReadProtoFromBinaryFile(const char* filename, Message* proto) { CHECK_NE(fd, -1) << "File not found: " << filename; ZeroCopyInputStream* raw_input = new FileInputStream(fd); CodedInputStream* coded_input = new CodedInputStream(raw_input); - coded_input->SetTotalBytesLimit(536870912, 268435456); + coded_input->SetTotalBytesLimit(1073741824, 536870912); bool success = proto->ParseFromCodedStream(coded_input); -- 2.7.4