summaryrefslogtreecommitdiff
path: root/tools/test_net.cpp
diff options
context:
space:
mode:
authorJeff Donahue <jeff.donahue@gmail.com>2014-03-15 02:33:40 -0700
committerJeff Donahue <jeff.donahue@gmail.com>2014-03-27 23:42:28 -0700
commitbe8d83603c559cb46170442c3c0cbd663492db05 (patch)
tree2cfd887e74590a53c121d955cacdff88d40ab88c /tools/test_net.cpp
parent69ddcc84a6c014bb1bb3d1d50ac52c75f26fc5ac (diff)
downloadcaffeonacl-be8d83603c559cb46170442c3c0cbd663492db05.tar.gz
caffeonacl-be8d83603c559cb46170442c3c0cbd663492db05.tar.bz2
caffeonacl-be8d83603c559cb46170442c3c0cbd663492db05.zip
make ReadProtoFromTextFile not die on parse failure; add
ReadProtoFromTextFileOrDie which has the old functionality
Diffstat (limited to 'tools/test_net.cpp')
-rw-r--r--tools/test_net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test_net.cpp b/tools/test_net.cpp
index 0abfbf68..0b49e54a 100644
--- a/tools/test_net.cpp
+++ b/tools/test_net.cpp
@@ -35,7 +35,7 @@ int main(int argc, char** argv) {
}
NetParameter test_net_param;
- ReadProtoFromTextFile(argv[1], &test_net_param);
+ ReadProtoFromTextFileOrDie(argv[1], &test_net_param);
Net<float> caffe_test_net(test_net_param);
NetParameter trained_net_param;
ReadProtoFromBinaryFile(argv[2], &trained_net_param);