3 #include "caffe2/core/context.h" 4 #include "caffe2/core/logging.h" 5 #include "caffe2/core/operator.h" 9 template <
typename T,
class Context>
12 template <
class... Args>
17 static_cast<T>(this->
template GetSingleArgument<float>(
"alpha", 0.01));
21 USE_OPERATOR_CONTEXT_FUNCTIONS;
23 bool RunOnDevice()
override;
29 template <
typename T,
class Context>
32 template <
class... Args>
37 static_cast<T>(this->
template GetSingleArgument<float>(
"alpha", 0.01));
41 USE_OPERATOR_CONTEXT_FUNCTIONS;
43 bool RunOnDevice()
override;
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
bool HasArgument(const string &name) const
Checks if the operator has an argument of the given name.