Caffe2 - C++ API
A deep learning, cross platform ML framework
redis_store_handler_op.cc
1 
17 #include "redis_store_handler_op.h"
18 
19 namespace caffe2 {
20 
21 REGISTER_CPU_OPERATOR(
22  RedisStoreHandlerCreate,
23  RedisStoreHandlerCreateOp<CPUContext>);
24 
25 OPERATOR_SCHEMA(RedisStoreHandlerCreate)
26  .NumInputs(0)
27  .NumOutputs(1)
28  .SetDoc(R"DOC(
29 Creates a unique_ptr<StoreHandler> that uses a Redis server as backing store.
30 )DOC")
31  .Arg("host", "host name of Redis server")
32  .Arg("port", "port number of Redis server")
33  .Arg("prefix", "keys used by this instance are prefixed with this string")
34  .Output(0, "handler", "unique_ptr<StoreHandler>");
35 
36 NO_GRADIENT(RedisStoreHandlerCreateOp);
37 
38 } // namespace caffe2
Copyright (c) 2016-present, Facebook, Inc.