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:
@ -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
|
||||
|
Reference in New Issue
Block a user