File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
include/torchrec/inference
inference_legacy/include/torchrec/inference Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ namespace torchrec {
2020bool 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:
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ namespace torchrec {
2020bool 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:
You can’t perform that action at this time.
0 commit comments