3 #include "redis_store_handler.h" 5 #include <caffe2/core/operator.h> 11 template <
class Context>
15 const OperatorDef& operator_def,
19 OperatorBase::template GetSingleArgument<std::string>(
"host",
"")),
20 port_(OperatorBase::template GetSingleArgument<int>(
"port", 0)),
21 prefix_(OperatorBase::template GetSingleArgument<std::string>(
24 CAFFE_ENFORCE_NE(host_,
"",
"host is a required argument");
25 CAFFE_ENFORCE_NE(port_, 0,
"port is a required argument");
28 bool RunOnDevice()
override {
29 auto ptr = std::unique_ptr<StoreHandler>(
31 *OperatorBase::Output<std::unique_ptr<StoreHandler>>(HANDLER) =
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 ...