1 #ifndef CAFFE2_OPERATORS_HARD_SIGMOID_H_ 2 #define CAFFE2_OPERATORS_HARD_SIGMOID_H_ 6 #include "caffe2/operators/elementwise_ops.h" 10 template <
class Context>
13 : alpha(op.GetSingleArgument<
float>(
"alpha", 0.2f)),
14 beta(op.GetSingleArgument<
float>(
"beta", 0.5f)) {}
17 bool operator()(
const int N,
const T* X,
T* Y, Context* context)
const;
19 const float alpha, beta;
22 template <
class Context>
25 : alpha(op.GetSingleArgument<
float>(
"alpha", 0.2f)) {}
29 const std::vector<int>& Y_dims,
30 const std::vector<int>& dY_dims,
34 Context* context)
const;
41 #endif // CAFFE2CAFFE2_OPERATORS_HARD_SIGMOID_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...