Caffe2 - C++ API
A deep learning, cross platform ML framework
utils.h
1 #ifndef THCP_UTILS_H
2 #define THCP_UTILS_H
3 
4 #define THCPUtils_(NAME) TH_CONCAT_4(THCP,Real,Utils_,NAME)
5 
6 #define THCStoragePtr TH_CONCAT_3(THC,Real,StoragePtr)
7 #define THCTensorPtr TH_CONCAT_3(THC,Real,TensorPtr)
8 #define THCPStoragePtr TH_CONCAT_3(THCP,Real,StoragePtr)
9 #define THCPTensorPtr TH_CONCAT_3(THCP,Real,TensorPtr)
10 
11 #define THCSTensorPtr TH_CONCAT_3(THCS,Real,TensorPtr)
12 #define THCSPTensorPtr TH_CONCAT_3(THCSP,Real,TensorPtr)
13 
14 #include <torch/csrc/cuda/override_macros.h>
15 
16 #define THC_GENERIC_FILE "torch/csrc/generic/utils.h"
17 #include <THC/THCGenerateAllTypes.h>
18 
19 #define THC_GENERIC_FILE "torch/csrc/generic/utils.h"
20 #include <THC/THCGenerateBoolType.h>
21 #endif