From a5feb55b6108d6ed1967525e0ca239a6e85b72eb Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Wed, 2 Oct 2024 09:52: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: palmje, dmm-fb Differential Revision: D63402383 --- pytorch3d/csrc/pulsar/pytorch/renderer.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pytorch3d/csrc/pulsar/pytorch/renderer.h b/pytorch3d/csrc/pulsar/pytorch/renderer.h index 2525ca3f3..33f9e24f5 100644 --- a/pytorch3d/csrc/pulsar/pytorch/renderer.h +++ b/pytorch3d/csrc/pulsar/pytorch/renderer.h @@ -44,8 +44,8 @@ struct Renderer { 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); @@ -75,8 +75,8 @@ struct Renderer { 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, @@ -115,8 +115,8 @@ struct Renderer { 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);