pytorch/torch/csrc/distributed/c10d/Store.cpp
Luca Wehrstedt a016150163 Move torch/lib/c10d to torch/csrc/distributed/c10d (#60543)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/60543

Since now c10d is part of libtorch, it would also be nice if the sources lived all in one place.
ghstack-source-id: 132306292

Test Plan: It builds

Reviewed By: cbalioglu

Differential Revision: D29062002

fbshipit-source-id: d9e1301e9d73e1643fa0f0119cd2d618f1ad52e6
2021-06-24 12:38:51 -07:00

20 lines
464 B
C++

#include <c10d/Store.hpp>
namespace c10d {
constexpr std::chrono::milliseconds Store::kDefaultTimeout;
constexpr std::chrono::milliseconds Store::kNoTimeout;
// Define destructor symbol for abstract base class.
Store::~Store() {}
const std::chrono::milliseconds& Store::getTimeout() const noexcept {
return timeout_;
}
// Set timeout function
void Store::setTimeout(const std::chrono::milliseconds& timeout) {
timeout_ = timeout;
}
} // namespace c10d