Caffe2 - C++ API
A deep learning, cross platform ML framework
override_macros.h
1 #include <torch/csrc/cuda/undef_macros.h>
2 
3 #define THWStoragePtr THCStoragePtr
4 #define THPStoragePtr THCPStoragePtr
5 #define THWTensorPtr THCTensorPtr
6 #define THPTensorPtr THCPTensorPtr
7 
8 #define THWStorage THCStorage
9 #define THWStorage_(NAME) THCStorage_(NAME)
10 #define THWTensor THCTensor
11 #define THWTensor_(NAME) THCTensor_(NAME)
12 
13 #define THPStorage_(NAME) TH_CONCAT_4(THCP,Real,Storage_,NAME)
14 #define THPStorageBaseStr THCPStorageBaseStr
15 #define THPStorageStr THCPStorageStr
16 #define THPStorageClass THCPStorageClass
17 #define THPStorageType THCPStorageType
18 
19 #define THPTensor_(NAME) TH_CONCAT_4(THCP,Real,Tensor_,NAME)
20 #define THPTensor_stateless_(NAME) TH_CONCAT_4(THCP,Real,Tensor_stateless_,NAME)
21 #define THPTensor THCPTensor
22 #define THPTensorStr THCPTensorStr
23 #define THPTensorBaseStr THCPTensorBaseStr
24 #define THPTensorClass THCPTensorClass
25 #define THPTensorType THCPTensorType
26 
27 #define THPTensorStatelessType THCPTensorStatelessType
28 #define THPTensorStateless THCPTensorStateless
29 
30 
31 #define THSPTensorPtr THCSPTensorPtr
32 
33 #define THSPTensor_(NAME) TH_CONCAT_4(THCSP,Real,Tensor_,NAME)
34 #define THSPTensor_stateless_(NAME) TH_CONCAT_4(THCSP,Real,Tensor_stateless_,NAME)
35 #define THSPTensor THCSPTensor
36 #define THSPTensorStr THCSPTensorStr
37 #define THSPTensorBaseStr THCSPTensorBaseStr
38 #define THSPTensorClass THCSPTensorClass
39 #define THSPTensorType THCSPTensorType
40 
41 #define THSPTensorStatelessType THCSPTensorStatelessType
42 #define THSPTensorStateless THCSPTensorStateless
43 
44 
45 #define LIBRARY_STATE_NOARGS state
46 #define LIBRARY_STATE state,
47 #define LIBRARY_STATE_TYPE THCState*,
48 #define LIBRARY_STATE_TYPE_NOARGS THCState*
49 #define TH_GENERIC_FILE THC_GENERIC_FILE
50 
51 #define THHostTensor TH_CONCAT_3(TH,Real,Tensor)
52 #define THHostTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
53 #define THHostStorage TH_CONCAT_3(TH,Real,Storage)
54 #define THHostStorage_(NAME) TH_CONCAT_4(TH,Real,Storage_,NAME)