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