Caffe2 - C++ API
A deep learning, cross platform ML framework
file_store_handler_op.cc
1 
17 #include "file_store_handler_op.h"
18 
19 namespace caffe2 {
20 
21 REGISTER_CPU_OPERATOR(
22  FileStoreHandlerCreate,
23  FileStoreHandlerCreateOp<CPUContext>);
24 
25 OPERATOR_SCHEMA(FileStoreHandlerCreate)
26  .NumInputs(0)
27  .NumOutputs(1)
28  .SetDoc(R"DOC(
29 Creates a unique_ptr<StoreHandler> that uses the filesystem as backing
30 store (typically a filesystem shared between many nodes, such as NFS).
31 This store handler is not built to be fast. Its recommended use is for
32 integration tests and prototypes where extra dependencies are
33 cumbersome. Use an ephemeral path to ensure multiple processes or runs
34 don't interfere.
35 )DOC")
36  .Arg("path", "base path used by the FileStoreHandler")
37  .Arg("prefix", "prefix for all keys used by this store")
38  .Output(0, "handler", "unique_ptr<StoreHandler>");
39 
40 NO_GRADIENT(FileStoreHandlerCreateOp);
41 
42 } // namespace caffe2
Copyright (c) 2016-present, Facebook, Inc.