mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301)
Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/128301 Approved by: https://github.com/ezyang
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 c10::nullopt;
|
||||
return std::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 c10::nullopt;
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
Reference in New Issue
Block a user