Skip to content

Commit

Permalink
Fix the return value of ParseFromString (pytorch#19262)
Browse files Browse the repository at this point in the history
Summary:
Fix the return value of ParseFromString.
Pull Request resolved: pytorch#19262

Differential Revision: D14937605

Pulled By: ezyang

fbshipit-source-id: 3f441086517186a075efb3d74f09160463b696b3
  • Loading branch information
gemfield authored and facebook-github-bot committed Apr 15, 2019
1 parent 3403cb8 commit 6ed57e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions caffe2/utils/proto_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6ed57e0

Please sign in to comment.