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;
17 alpha_ = OperatorBase::GetSingleArgument<T>(
"alpha", 1.0);
20 bool RunOnDevice()
override;
26 template <
typename T,
class Context>
29 USE_OPERATOR_CONTEXT_FUNCTIONS;
32 alpha_ = OperatorBase::GetSingleArgument<T>(
"alpha", 1.0);
35 bool RunOnDevice()
override;
43 #endif // CAFFE2_OPERATORS_THRESHOLDED_RELU_OP_H_
Workspace is a class that holds all the related objects created during runtime: (1) all blobs...
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...