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:
PyTorch MergeBot
2024-06-15 01:58:20 +00:00
parent 5efe71f134
commit 846bb30e13
330 changed files with 1207 additions and 1208 deletions

View File

@ -259,7 +259,7 @@ std::pair<IValue, IValue> getFunctionTuple(
if (namedType && namedType->name()) {
return type_name_uniquer_.getUniqueName(namedType).qualifiedName();
}
return std::nullopt;
return c10::nullopt;
};
auto makeArgTuple = [&](const std::vector<Argument>& args) {
@ -765,7 +765,7 @@ std::optional<std::string> type_printer(
if (namedType && namedType->name()) {
return type_name_uniquer.getUniqueName(namedType).qualifiedName();
}
return std::nullopt;
return c10::nullopt;
}
} // namespace