From 8a44ec3907aa1adcb1d23ea6a1775d3626e0e8b1 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Wed, 23 Oct 2024 13:27:31 -0700 Subject: [PATCH] c10::nullopt -> std::nullopt Summary: X-link: https://github.com/pytorch/torchrec/pull/2515 X-link: https://github.com/pytorch/executorch/pull/6461 X-link: https://github.com/pytorch/audio/pull/3848 X-link: https://github.com/pytorch/ao/pull/1151 X-link: https://github.com/facebookincubator/AITemplate/pull/1032 Reviewed By: houseroad Differential Revision: D64835967 fbshipit-source-id: 9f9f65335aaf5497680561027ef9314e4b36f8d9 --- torchcsprng/csrc/csprng.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torchcsprng/csrc/csprng.cpp b/torchcsprng/csrc/csprng.cpp index e291960..17c12f7 100644 --- a/torchcsprng/csrc/csprng.cpp +++ b/torchcsprng/csrc/csprng.cpp @@ -317,7 +317,7 @@ Tensor decrypt_pybind(Tensor input, Tensor output, Tensor key, const std::string // ==================================================================================================================== -Generator create_random_device_generator(std::optional token = c10::nullopt) { +Generator create_random_device_generator(std::optional token = std::nullopt) { if (token.has_value()) { return make_generator(*token); } else { @@ -325,7 +325,7 @@ Generator create_random_device_generator(std::optional token = c10: } } -Generator create_mt19937_generator(std::optional seed = c10::nullopt) { +Generator create_mt19937_generator(std::optional seed = std::nullopt) { if (seed.has_value()) { return make_generator(*seed); } else {