Caffe2 - C++ API
A deep learning, cross platform ML framework
file_store_handler_op.cc
1 #include "file_store_handler_op.h"
2 
3 namespace caffe2 {
4 
5 REGISTER_CPU_OPERATOR(
6  FileStoreHandlerCreate,
7  FileStoreHandlerCreateOp<CPUContext>);
8 
9 OPERATOR_SCHEMA(FileStoreHandlerCreate)
10  .NumInputs(0)
11  .NumOutputs(1)
12  .SetDoc(R"DOC(
13 Creates a unique_ptr<StoreHandler> that uses the filesystem as backing
14 store (typically a filesystem shared between many nodes, such as NFS).
15 This store handler is not built to be fast. Its recommended use is for
16 integration tests and prototypes where extra dependencies are
17 cumbersome. Use an ephemeral path to ensure multiple processes or runs
18 don't interfere.
19 )DOC")
20  .Arg("path", "base path used by the FileStoreHandler")
21  .Arg("prefix", "prefix for all keys used by this store")
22  .Output(0, "handler", "unique_ptr<StoreHandler>");
23 
24 NO_GRADIENT(FileStoreHandlerCreateOp);
25 
26 } // namespace caffe2
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13