1 #ifndef CAFFE2_OPERATORS_NO_DEFAULT_ENGINE_OP_H_ 2 #define CAFFE2_OPERATORS_NO_DEFAULT_ENGINE_OP_H_ 4 #include "caffe2/core/context.h" 5 #include "caffe2/core/logging.h" 6 #include "caffe2/core/operator.h" 18 template <
class Context>
22 USE_OPERATOR_CONTEXT_FUNCTIONS;
24 bool RunOnDevice()
override {
27 this->debug_def().type(),
28 " does not have a default engine implementation. Please " 29 "specify an engine explicitly for this operator.");
35 #endif // CAFFE2_OPERATORS_NO_DEFAULT_ENGINE_OP_H_ A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
A helper class to denote that an op does not have a default engine.