Caffe2 - C++ API
A deep learning, cross platform ML framework
utils.cpp
1 #ifndef TH_GENERIC_FILE
2 #define TH_GENERIC_FILE "torch/csrc/generic/utils.cpp"
3 #else
4 
5 #if defined(THD_GENERIC_FILE) || defined(TH_REAL_IS_HALF)
6 #define GENERATE_SPARSE 0
7 #else
8 #define GENERATE_SPARSE 1
9 #endif
10 #undef GENERATE_SPARSE
11 
12 #endif