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