mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Revert "[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)"
This reverts commit bd72e28314d8d63bb347becb8309f5ac7761c6b5.
Reverted https://github.com/pytorch/pytorch/pull/128301 on behalf of https://github.com/huydhn due to Sorry for reverting your change but it fails XLA build bd72e28314
. Please rebase your PR before relanding because I think the failure is hidden by an unrelated broken trunk XLA failure from your current base commit ([comment](https://github.com/pytorch/pytorch/pull/128301#issuecomment-2169035822))
This commit is contained in:
@ -49,7 +49,7 @@ struct TCPStoreOptions {
|
||||
|
||||
std::uint16_t port = kDefaultPort;
|
||||
bool isServer = false;
|
||||
std::optional<std::size_t> numWorkers = std::nullopt;
|
||||
std::optional<std::size_t> numWorkers = c10::nullopt;
|
||||
bool waitWorkers = true;
|
||||
std::chrono::milliseconds timeout = Store::kDefaultTimeout;
|
||||
|
||||
@ -60,7 +60,7 @@ struct TCPStoreOptions {
|
||||
// If specified, and if isServer is true, the underlying TCPServer will take
|
||||
// over the bound socket associated to this fd. This option is useful to avoid
|
||||
// port assignment races in certain scenarios.
|
||||
std::optional<int> masterListenFd = std::nullopt;
|
||||
std::optional<int> masterListenFd = c10::nullopt;
|
||||
|
||||
// A boolean value indicating whether to use the experimental libUV backend.
|
||||
bool useLibUV = true;
|
||||
@ -73,7 +73,7 @@ class TORCH_API TCPStore : public Store {
|
||||
[[deprecated("Use TCPStore(host, opts) instead.")]] explicit TCPStore(
|
||||
const std::string& masterAddr,
|
||||
std::uint16_t masterPort,
|
||||
std::optional<int> numWorkers = std::nullopt,
|
||||
std::optional<int> numWorkers = c10::nullopt,
|
||||
bool isServer = false,
|
||||
const std::chrono::milliseconds& timeout = kDefaultTimeout,
|
||||
bool waitWorkers = true);
|
||||
|
Reference in New Issue
Block a user