5 #include "caffe2/core/common.h" 6 #include "caffe2/core/init.h" 11 "If true, turn on flushing denormals to zero (FTZ)");
15 "If true, turn on replacing denormals loaded from memory with zero (DAZ)");
19 bool Caffe2SetDenormals(
int*,
char***) {
20 if (FLAGS_caffe2_ftz) {
21 VLOG(1) <<
"Setting FTZ";
22 _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
24 if (FLAGS_caffe2_daz) {
25 VLOG(1) <<
"Setting DAZ";
26 _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
31 REGISTER_CAFFE2_INIT_FUNCTION(
34 "Set denormal settings.");
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...