Caffe2 - C++ API
A deep learning, cross platform ML framework
proto_wrap.cc
1 #include "caffe2/utils/proto_wrap.h"
2 #include "caffe2/core/common.h"
3 
4 #include <google/protobuf/stubs/common.h>
5 #include <google/protobuf/generated_message_util.h>
6 
7 namespace ONNX_NAMESPACE {
8 
9 // ONNX wrapper functions for protobuf's GetEmptyStringAlreadyInited() function
10 // used to avoid duplicated global variable in the case when protobuf
11 // is built with hidden visibility.
12 CAFFE2_API const ::std::string& GetEmptyStringAlreadyInited() {
13  return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
14 }
15 
16 } // namespace ONNX_NAMESPACE
17 
18 namespace caffe2 {
19 
20 // Caffe2 wrapper functions for protobuf's GetEmptyStringAlreadyInited() function
21 // used to avoid duplicated global variable in the case when protobuf
22 // is built with hidden visibility.
23 CAFFE2_API const ::std::string& GetEmptyStringAlreadyInited() {
24  return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
25 }
26 
27 void ShutdownProtobufLibrary() {
28  ::google::protobuf::ShutdownProtobufLibrary();
29 }
30 
31 } // namespace caffe2
32 
33 namespace torch {
34 
35 // Caffe2 wrapper functions for protobuf's GetEmptyStringAlreadyInited() function
36 // used to avoid duplicated global variable in the case when protobuf
37 // is built with hidden visibility.
38 CAFFE2_API const ::std::string& GetEmptyStringAlreadyInited() {
39  return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
40 }
41 
42 void ShutdownProtobufLibrary() {
43  ::google::protobuf::ShutdownProtobufLibrary();
44 }
45 
46 } // namespace torch
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13
Definition: jit_type.h:17