diff options
author | Gemfield <gemfield@civilnet.cn> | 2019-04-15 12:23:36 -0700 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2019-04-15 12:39:29 -0700 |
commit | 6ed57e052dbf603cc8c5cdb31f5404b67ab7c768 (patch) | |
tree | b5fbf5fd99d406f9cb15a506ef9d89c4b25a120c /caffe2 | |
parent | 3403cb857bc2e1bdfb26665688f077ee1b05e811 (diff) | |
download | pytorch-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.h | 1 |
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 |