4 #define CAFFE2_SUPPORTS_SIGNAL_HANDLER 5 #elif defined(__linux__) && !defined(CAFFE2_DISABLE_SIGNAL_HANDLERS) 6 #define CAFFE2_SUPPORTS_FATAL_SIGNAL_HANDLERS 7 #define CAFFE2_SUPPORTS_SIGNAL_HANDLER 21 Action SIGHUP_action);
24 Action CheckForSignals();
29 Action SIGINT_action_;
30 Action SIGHUP_action_;
31 unsigned long my_sigint_count_;
32 unsigned long my_sighup_count_;
35 #if defined(CAFFE2_SUPPORTS_FATAL_SIGNAL_HANDLERS) 39 void setPrintStackTracesOnFatalSignal(
bool print);
40 bool printStackTracesOnFatalSignal();
41 #endif // defined(CAFFE2_SUPPORTS_SIGNAL_HANDLER)
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...