[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:
cyy
2024-06-14 23:21:01 +00:00
committed by PyTorch MergeBot
parent 52d4442a00
commit bd72e28314
330 changed files with 1208 additions and 1207 deletions

View File

@ -2,10 +2,10 @@
#include <ATen/core/Reduction.h>
#include <ATen/core/type_factory.h>
#include <c10/util/Optional.h>
#include <torch/csrc/jit/frontend/lexer.h>
#include <torch/csrc/jit/frontend/parse_string_literal.h>
#include <torch/csrc/jit/frontend/schema_type_parser.h>
#include <optional>
#include <functional>
#include <memory>
@ -25,7 +25,7 @@ struct SchemaParser {
explicit SchemaParser(const std::string& str, bool allow_typevars)
: L(std::make_shared<Source>(
c10::string_view(str),
c10::nullopt,
std::nullopt,
0,
nullptr,
Source::DONT_COPY)),