mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-15 21:00:47 +00:00
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
20 lines
464 B
C++
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
|