summaryrefslogtreecommitdiff
path: root/caffe2
diff options
context:
space:
mode:
authorGemfield <gemfield@civilnet.cn>2019-04-15 12:23:36 -0700
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2019-04-15 12:39:29 -0700
commit6ed57e052dbf603cc8c5cdb31f5404b67ab7c768 (patch)
treeb5fbf5fd99d406f9cb15a506ef9d89c4b25a120c /caffe2
parent3403cb857bc2e1bdfb26665688f077ee1b05e811 (diff)
downloadpytorch-6ed57e052dbf603cc8c5cdb31f5404b67ab7c768.tar.gz
pytorch-6ed57e052dbf603cc8c5cdb31f5404b67ab7c768.tar.bz2
pytorch-6ed57e052dbf603cc8c5cdb31f5404b67ab7c768.zip
Fix the return value of ParseFromString (#19262)
Summary: Fix the return value of ParseFromString. Pull Request resolved: https://github.com/pytorch/pytorch/pull/19262 Differential Revision: D14937605 Pulled By: ezyang fbshipit-source-id: 3f441086517186a075efb3d74f09160463b696b3
Diffstat (limited to 'caffe2')
-rw-r--r--caffe2/utils/proto_utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/caffe2/utils/proto_utils.h b/caffe2/utils/proto_utils.h
index 22ccc63590..7014b0cd11 100644
--- a/caffe2/utils/proto_utils.h
+++ b/caffe2/utils/proto_utils.h
@@ -55,6 +55,7 @@ namespace TextFormat {
inline bool ParseFromString(const string& spec, MessageLite* proto) {
LOG(FATAL) << "If you are running lite version, you should not be "
<< "calling any text-format protobuffers.";
+ return false;
}
} // namespace TextFormat