mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[2/N] Change #include <c10/util/Optional.h> to #include <optional> (#130236)
Follows #128301. The changes were made by grep and sed Pull Request resolved: https://github.com/pytorch/pytorch/pull/130236 Approved by: https://github.com/ezyang
This commit is contained in:
@ -653,7 +653,7 @@ struct NCCLTraceBuffer {
|
||||
std::chrono::milliseconds timeout_ms,
|
||||
bool isP2P) {
|
||||
if (!enabled_) {
|
||||
return c10::nullopt;
|
||||
return std::nullopt;
|
||||
}
|
||||
auto traceback =
|
||||
torch::CapturedTraceback::gather(true, true, capture_cpp_stack_);
|
||||
@ -765,7 +765,7 @@ struct NCCLTraceBuffer {
|
||||
bool can_compute_duration = false;
|
||||
Event* startEvent = nullptr;
|
||||
Event* endEvent = nullptr;
|
||||
std::optional<float> duration = c10::nullopt;
|
||||
std::optional<float> duration = std::nullopt;
|
||||
|
||||
std::unique_lock<std::mutex> guard(mutex_);
|
||||
|
||||
|
Reference in New Issue
Block a user