mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 01:51:24 +00:00
14 lines
668 B
Diff
14 lines
668 B
Diff
|
diff --git a/modules/dnn/src/caffe/caffe_io.cpp b/modules/dnn/src/caffe/caffe_io.cpp
|
||
|
index 730c752ce..abbce0453 100644
|
||
|
--- a/modules/dnn/src/caffe/caffe_io.cpp
|
||
|
+++ b/modules/dnn/src/caffe/caffe_io.cpp
|
||
|
@@ -1120,7 +1120,7 @@ bool ReadProtoFromTextFile(const char* filename, Message* proto) {
|
||
|
std::ifstream fs(filename, std::ifstream::in);
|
||
|
CHECK(fs.is_open()) << "Can't open \"" << filename << "\"";
|
||
|
IstreamInputStream input(&fs);
|
||
|
- return google::protobuf::TextFormat::Parser(true).Parse(&input, proto);
|
||
|
+ return google::protobuf::TextFormat::Parser().Parse(&input, proto);
|
||
|
}
|
||
|
|
||
|
bool ReadProtoFromBinaryFile(const char* filename, Message* proto) {
|