1 #ifndef CAFFE2_OPERATORS_RELU_N_OP_H_ 2 #define CAFFE2_OPERATORS_RELU_N_OP_H_ 6 #include "caffe2/operators/elementwise_ops.h" 10 template <
class Context>
13 : n(op.GetSingleArgument<
float>(
"n", 6.0f)) {
14 CAFFE_ENFORCE_GT(n, 0,
"n should be greater than 0");
18 bool operator()(
const int N,
const T* X,
T* Y, Context* context)
const;
23 template <
class Context>
26 : n(op.GetSingleArgument<
float>(
"n", 6.0f)) {
27 CAFFE_ENFORCE_GT(n, 0,
"n should be greater than 0");
32 const std::vector<int>& Y_dims,
33 const std::vector<int>& dY_dims,
37 Context* context)
const;
44 #endif // CAFFE2_OPERATORS_RELU_N_OP_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...