1 #ifndef CAFFE2_OPERATORS_ELEMENTWISE_LINEAR_OP_H_ 2 #define CAFFE2_OPERATORS_ELEMENTWISE_LINEAR_OP_H_ 4 #include "caffe2/core/context.h" 5 #include "caffe2/core/operator.h" 6 #include "caffe2/utils/math.h" 9 template <
typename T,
class Context,
class Engine = DefaultEngine>
12 template <
class... Args>
15 axis_(this->
template GetSingleArgument<int>(
"axis", 1)) {}
17 USE_OPERATOR_CONTEXT_FUNCTIONS;
18 bool RunOnDevice()
override;
24 template <
typename T,
class Context,
class Engine = DefaultEngine>
27 template <
class... Args>
30 axis_(this->
template GetSingleArgument<int>(
"axis", 1)) {}
32 USE_OPERATOR_CONTEXT_FUNCTIONS;
33 bool RunOnDevice()
override;
41 #endif // CAFFE2_OPERATORS_ELEMENTWISE_LINEAR_OP_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...