1 #ifndef CAFFE2_UTILS_MATH_REDUCE_H_ 2 #define CAFFE2_UTILS_MATH_REDUCE_H_ 4 #include "caffe2/core/common.h" 5 #include "caffe2/core/types.h" 13 template <
typename T,
class Context>
15 ReduceMin(
const int N,
const T* X,
T* y,
Tensor* scratch_ptr, Context* context);
17 template <
typename T,
class Context>
19 ReduceMax(
const int N,
const T* X,
T* y,
Tensor* scratch_ptr, Context* context);
27 template <
typename T,
class Context>
28 CAFFE2_API
void ReduceMin(
38 template <
typename T,
class Context>
39 CAFFE2_API
void ReduceMax(
49 template <
typename T,
class Context>
50 CAFFE2_API
void ReduceSum(
60 template <
typename T,
class Context>
61 CAFFE2_API
void ReduceMean(
71 template <
typename T,
class Context>
72 CAFFE2_API
void ReduceL1(
82 template <
typename T,
class Context>
83 CAFFE2_API
void ReduceL2(
93 template <
typename T,
class Context>
94 CAFFE2_API
void Moments(
107 #endif // CAFFE2_UTILS_MATH_REDUCE_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...