Caffe2 - C++ API
A deep learning, cross platform ML framework
file_store_handler.h
1 #pragma once
2 
3 #include <caffe2/distributed/store_handler.h>
4 
5 namespace caffe2 {
6 
7 class CAFFE2_API FileStoreHandler : public StoreHandler {
8  public:
9  explicit FileStoreHandler(const std::string& path, const std::string& prefix);
10  virtual ~FileStoreHandler();
11 
12  virtual void set(const std::string& name, const std::string& data) override;
13 
14  virtual std::string get(
15  const std::string& name,
16  const std::chrono::milliseconds& timeout = kDefaultTimeout) override;
17 
18  virtual int64_t add(const std::string& name, int64_t value) override;
19 
20  virtual bool check(const std::vector<std::string>& names) override;
21 
22  virtual void wait(
23  const std::vector<std::string>& names,
24  const std::chrono::milliseconds& timeout = kDefaultTimeout) override;
25 
26  protected:
27  std::string basePath_;
28 
29  std::string realPath(const std::string& path);
30 
31  std::string tmpPath(const std::string& name);
32 
33  std::string objectPath(const std::string& name);
34 };
35 
36 } // namespace caffe2
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13