Skip to content

Commit 65cebaf

Browse files
c10::nullopt -> std::nullopt
Summary: X-link: meta-pytorch/torchrec#2515 X-link: pytorch/executorch#6461 X-link: pytorch/audio#3848 X-link: pytorch/ao#1151 X-link: facebookincubator/AITemplate#1032 Reviewed By: houseroad Differential Revision: D64835967 fbshipit-source-id: 9f9f65335aaf5497680561027ef9314e4b36f8d9
1 parent 891e705 commit 65cebaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchcsprng/csrc/csprng.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,15 +317,15 @@ Tensor decrypt_pybind(Tensor input, Tensor output, Tensor key, const std::string
317317

318318
// ====================================================================================================================
319319

320-
Generator create_random_device_generator(std::optional<std::string> token = c10::nullopt) {
320+
Generator create_random_device_generator(std::optional<std::string> token = std::nullopt) {
321321
if (token.has_value()) {
322322
return make_generator<CSPRNGGeneratorImpl>(*token);
323323
} else {
324324
return make_generator<CSPRNGGeneratorImpl>(true);
325325
}
326326
}
327327

328-
Generator create_mt19937_generator(std::optional<uint64_t> seed = c10::nullopt) {
328+
Generator create_mt19937_generator(std::optional<uint64_t> seed = std::nullopt) {
329329
if (seed.has_value()) {
330330
return make_generator<CSPRNGGeneratorImpl>(*seed);
331331
} else {

0 commit comments

Comments
 (0)