Skip to content

Commit c7e0101

Browse files
r-barnesfacebook-github-bot
authored andcommitted
c10::nullopt -> std::nullopt (#1032)
Summary: X-link: meta-pytorch/torchrec#2515 X-link: pytorch/executorch#6461 X-link: pytorch/audio#3848 X-link: pytorch/ao#1151 Pull Request resolved: #1032 Reviewed By: houseroad Differential Revision: D64835967 fbshipit-source-id: 9f9f65335aaf5497680561027ef9314e4b36f8d9
1 parent aef8f6e commit c7e0101

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fx2ait/fx2ait/csrc/AITModelImpl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ std::vector<torch::Tensor> AITModelImpl::processOutputs(
366366
output.unsafeGetTensorImpl()->set_sizes_contiguous(size);
367367
}
368368

369-
if (floating_point_output_dtype_ != c10::nullopt &&
369+
if (floating_point_output_dtype_ != std::nullopt &&
370370
output.is_floating_point()) {
371371
outputs.emplace_back(output.to(*floating_point_output_dtype_));
372372
} else {
@@ -394,7 +394,7 @@ std::vector<AITData> AITModelImpl::processInputs(
394394
auto input_name = input_names_[python_input_idx];
395395
const auto ait_input_idx = input_name_to_index_.at(input_name);
396396
auto& input = inputs[python_input_idx];
397-
if (floating_point_input_dtype_ != c10::nullopt &&
397+
if (floating_point_input_dtype_ != std::nullopt &&
398398
input.is_floating_point()) {
399399
// Need to keep input alive; cannot just stash result of to()
400400
// call in a local!

0 commit comments

Comments
 (0)