[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

@ -658,7 +658,7 @@ void IterableTree::addChild(
// iterables run for the minimum length of all its leaves
unroll_length_ = std::min(*child_len, *unroll_length_);
} else {
unroll_length_ = c10::nullopt;
unroll_length_ = std::nullopt;
}
}
children_.push_back(iter_value);