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