From 8ed0c7a00200df5ca08385b0f7c186b155175756 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Thu, 3 Oct 2024 14:38:37 -0700 Subject: [PATCH] c10::optional -> std::optional Summary: `c10::optional` is an alias for `std::optional`. Let's remove the alias and use the real thing. Reviewed By: meyering Differential Revision: D63402341 fbshipit-source-id: 241383e7ca4b2f3f1f9cac3af083056123dfd02b --- pytorch3d/csrc/pulsar/pytorch/renderer.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pytorch3d/csrc/pulsar/pytorch/renderer.cpp b/pytorch3d/csrc/pulsar/pytorch/renderer.cpp index 4349aea7..aa53192c 100644 --- a/pytorch3d/csrc/pulsar/pytorch/renderer.cpp +++ b/pytorch3d/csrc/pulsar/pytorch/renderer.cpp @@ -213,8 +213,8 @@ std::tuple Renderer::arg_check( const float& gamma, const float& max_depth, float& min_depth, - const c10::optional& bg_col, - const c10::optional& opacity, + const std::optional& bg_col, + const std::optional& opacity, const float& percent_allowed_difference, const uint& max_n_hits, const uint& mode) { @@ -668,8 +668,8 @@ std::tuple Renderer::forward( const float& gamma, const float& max_depth, float min_depth, - const c10::optional& bg_col, - const c10::optional& opacity, + const std::optional& bg_col, + const std::optional& opacity, const float& percent_allowed_difference, const uint& max_n_hits, const uint& mode) { @@ -912,8 +912,8 @@ Renderer::backward( const float& gamma, const float& max_depth, float min_depth, - const c10::optional& bg_col, - const c10::optional& opacity, + const std::optional& bg_col, + const std::optional& opacity, const float& percent_allowed_difference, const uint& max_n_hits, const uint& mode,