17 #ifndef SAMPLE_AS_OP_H_ 18 #define SAMPLE_AS_OP_H_ 20 #include "caffe2/core/context.h" 21 #include "caffe2/core/logging.h" 22 #include "caffe2/core/operator.h" 23 #include "caffe2/utils/math.h" 27 template <
typename T,
class Context>
32 USE_OPERATOR_CONTEXT_FUNCTIONS;
34 bool RunOnDevice()
override {
36 CAFFE_NOT_IMPLEMENTED;
40 template <
typename T,
class Context>
45 USE_OPERATOR_CONTEXT_FUNCTIONS;
47 bool RunOnDevice()
override {
49 CAFFE_NOT_IMPLEMENTED;
55 #endif // SAMPLE_AS_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 ...