1 #ifndef CAFFE2_OPERATORS_THRESHOLDED_RELU_OP_H_ 2 #define CAFFE2_OPERATORS_THRESHOLDED_RELU_OP_H_ 4 #include "caffe2/core/common_omp.h" 5 #include "caffe2/core/context.h" 6 #include "caffe2/core/logging.h" 7 #include "caffe2/core/operator.h" 11 template <
typename T,
class Context>
14 USE_OPERATOR_CONTEXT_FUNCTIONS;
15 template <
class... Args>
18 alpha_ = this->
template GetSingleArgument<T>(
"alpha", 1.0);
21 bool RunOnDevice()
override;
27 template <
typename T,
class Context>
30 USE_OPERATOR_CONTEXT_FUNCTIONS;
31 template <
class... Args>
34 alpha_ = this->
template GetSingleArgument<T>(
"alpha", 1.0);
37 bool RunOnDevice()
override;
45 #endif // CAFFE2_OPERATORS_THRESHOLDED_RELU_OP_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...