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>
14 axis_(OperatorBase::GetSingleArgument<int>(
"axis", 1)) {}
16 USE_OPERATOR_CONTEXT_FUNCTIONS;
17 bool RunOnDevice()
override;
23 template <
typename T,
class Context,
class Engine = DefaultEngine>
28 axis_(OperatorBase::GetSingleArgument<int>(
"axis", 1)) {}
30 USE_OPERATOR_CONTEXT_FUNCTIONS;
31 bool RunOnDevice()
override;
39 #endif // CAFFE2_OPERATORS_ELEMENTWISE_LINEAR_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 ...