ceras
yet another deep learning engine
config.hpp
Go to the documentation of this file.
1 #ifndef FBXYAXRPGSNHIXESHOGNYHPVEWWVSRSRJLQPIRIFENBGNMGFLJNMWXDNQLHKOAGBNYGBJRLBD
2 #define FBXYAXRPGSNHIXESHOGNYHPVEWWVSRSRJLQPIRIFENBGNMGFLJNMWXDNQLHKOAGBNYGBJRLBD
3 
4 namespace ceras
5 {
6  inline constexpr unsigned long version = 20210418UL;
7  inline constexpr unsigned long __version__ = version;
8 
9 
25  #ifdef _MSC_VER
26  inline constexpr unsigned long is_windows_platform = 1;
27  #else
28  inline constexpr unsigned long is_windows_platform = 0;
29  #endif
30 
31  #ifdef NDEBUG
32  inline constexpr unsigned long debug_mode = 0;
33  #else
34  inline constexpr unsigned long debug_mode = 1;
35  #endif
36 
37  #ifdef CBLAS
38  inline constexpr unsigned long cblas_mode = 1;
39  #else
40  inline constexpr unsigned long cblas_mode = 0;
41  #endif
42 
43  #ifndef NOPARALLEL
44  inline constexpr unsigned long parallel_mode = 1;
45  #else
46  inline constexpr unsigned long parallel_mode = 0;
47  #endif
48 
49  #ifdef CUDA
50  inline constexpr unsigned long cuda_mode = 1;
51  #else
52  inline constexpr unsigned long cuda_mode = 0;
53  #endif
54  inline int visible_device = 0; // using GPU 0 by default
55  inline unsigned long cuda_gemm_threshold = 0UL; // will be updated if in CUDA mode, always assume float multiplications as double is rearly used
56 
57  inline constexpr double eps = 1.0e-8;
58  inline constexpr double epsilon = eps; // alias of `eps`
59 
75  inline int learning_phase = 1;
76 }
77 
78 #endif//FBXYAXRPGSNHIXESHOGNYHPVEWWVSRSRJLQPIRIFENBGNMGFLJNMWXDNQLHKOAGBNYGBJRLBD
79 
Definition: activation.hpp:12