diff options
author | Lu Fang <lufang@fb.com> | 2018-09-11 10:44:00 -0700 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2018-09-11 10:55:43 -0700 |
commit | 727a4453aa742db4dc59079fe10d3b7a67e62086 (patch) | |
tree | 7527726f194d1d7694ef32d7ea5523a02d7cfbda /caffe2/utils | |
parent | f80f15866b28ca148c797f5998f61bffb6e4b364 (diff) | |
download | pytorch-727a4453aa742db4dc59079fe10d3b7a67e62086.tar.gz pytorch-727a4453aa742db4dc59079fe10d3b7a67e62086.tar.bz2 pytorch-727a4453aa742db4dc59079fe10d3b7a67e62086.zip |
New Serialization Proto
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/11166
Reviewed By: mingzhe09088
Differential Revision: D9623522
Pulled By: houseroad
fbshipit-source-id: f21153034a398de7959404321d8534234cd58a40
Diffstat (limited to 'caffe2/utils')
-rw-r--r-- | caffe2/utils/proto_wrap.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/caffe2/utils/proto_wrap.cc b/caffe2/utils/proto_wrap.cc index b573968d90..eb06524cae 100644 --- a/caffe2/utils/proto_wrap.cc +++ b/caffe2/utils/proto_wrap.cc @@ -29,3 +29,18 @@ void ShutdownProtobufLibrary() { } } // namespace caffe2 + +namespace torch { + +// Caffe2 wrapper functions for protobuf's GetEmptyStringAlreadyInited() function +// used to avoid duplicated global variable in the case when protobuf +// is built with hidden visibility. +CAFFE2_API const ::std::string& GetEmptyStringAlreadyInited() { + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} + +void ShutdownProtobufLibrary() { + ::google::protobuf::ShutdownProtobufLibrary(); +} + +} // namespace torch |