13 static constexpr std::chrono::milliseconds kDefaultTimeout =
14 std::chrono::seconds(30);
15 static constexpr std::chrono::milliseconds kNoTimeout =
16 std::chrono::milliseconds::zero();
24 virtual void set(
const std::string& name,
const std::string& data) = 0;
31 virtual std::string
get(
const std::string& name) = 0;
38 virtual int64_t add(
const std::string& name, int64_t value) = 0;
43 virtual bool check(
const std::vector<std::string>& names) = 0;
49 const std::vector<std::string>& names,
50 const std::chrono::milliseconds& timeout = kDefaultTimeout) = 0;
56 : std::runtime_error(msg) {}
59 #define STORE_HANDLER_TIMEOUT(...) \ 60 throw ::caffe2::StoreHandlerTimeoutException( \ 61 ::caffe2::MakeString("[", __FILE__, ":", __LINE__, "] ", __VA_ARGS__)); A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...