Skip to content

Commit 7855789

Browse files
r-barnesfacebook-github-bot
authored andcommitted
c10::nullopt -> std::nullopt (#2515)
Summary: Pull Request resolved: #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 836d0f8 commit 7855789

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

torchrec/inference/include/torchrec/inference/GPUExecutor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class GPUExecutor {
5858
std::shared_ptr<IGPUExecutorObserver>
5959
observer, // shared_ptr because used in completion executor callback
6060
std::function<void()> warmupFn = {},
61-
std::optional<size_t> numThreadsPerGPU = c10::nullopt,
61+
std::optional<size_t> numThreadsPerGPU = std::nullopt,
6262
std::unique_ptr<GCConfig> gcConfig = std::make_unique<GCConfig>());
6363
GPUExecutor(GPUExecutor&& executor) noexcept = default;
6464
GPUExecutor& operator=(GPUExecutor&& executor) noexcept = default;

torchrec/inference/include/torchrec/inference/Validation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace torchrec {
2020
bool validateSparseFeatures(
2121
at::Tensor& values,
2222
at::Tensor& lengths,
23-
std::optional<at::Tensor> maybeWeights = c10::nullopt);
23+
std::optional<at::Tensor> maybeWeights = std::nullopt);
2424

2525
// Returns whether dense features are valid.
2626
// Currently validates:

torchrec/inference/inference_legacy/include/torchrec/inference/GPUExecutor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class GPUExecutor {
5858
std::shared_ptr<IGPUExecutorObserver>
5959
observer, // shared_ptr because used in completion executor callback
6060
std::function<void()> warmupFn = {},
61-
std::optional<size_t> numThreadsPerGPU = c10::nullopt,
61+
std::optional<size_t> numThreadsPerGPU = std::nullopt,
6262
std::unique_ptr<GCConfig> gcConfig = std::make_unique<GCConfig>());
6363
GPUExecutor(GPUExecutor&& executor) noexcept = default;
6464
GPUExecutor& operator=(GPUExecutor&& executor) noexcept = default;

torchrec/inference/inference_legacy/include/torchrec/inference/Validation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace torchrec {
2020
bool validateSparseFeatures(
2121
at::Tensor& values,
2222
at::Tensor& lengths,
23-
std::optional<at::Tensor> maybeWeights = c10::nullopt);
23+
std::optional<at::Tensor> maybeWeights = std::nullopt);
2424

2525
// Returns whether dense features are valid.
2626
// Currently validates:

0 commit comments

Comments
 (0)