1 #ifndef CAFFE2_UTILS_MATH_HALF_UTILS_H_ 2 #define CAFFE2_UTILS_MATH_HALF_UTILS_H_ 4 #include "caffe2/core/common.h" 5 #include "caffe2/core/types.h" 6 #include "caffe2/utils/conversions.h" 7 #include "caffe2/utils/math/utils.h" 16 return convert::To<float, at::Half>(
17 convert::To<at::Half, float>(a) + convert::To<at::Half, float>(b));
24 return convert::To<float, at::Half>(
25 convert::To<at::Half, float>(a) - convert::To<at::Half, float>(b));
32 return convert::To<float, at::Half>(
33 convert::To<at::Half, float>(a) * convert::To<at::Half, float>(b));
40 return convert::To<float, at::Half>(
41 convert::To<at::Half, float>(a) / convert::To<at::Half, float>(b));
49 #endif // CAFFE2_UTILS_MATH_HALF_UTILS_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...