From ea8521ac3894a756811e5d5f7fac7234fe764c35 Mon Sep 17 00:00:00 2001 From: Mark Harris Date: Thu, 27 Nov 2025 13:21:00 +1100 Subject: [PATCH] Invert !mAbsGrad Signed-off-by: Mark Harris --- src/fvdb/detail/ops/gsplat/GaussianRasterizeBackward.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fvdb/detail/ops/gsplat/GaussianRasterizeBackward.cu b/src/fvdb/detail/ops/gsplat/GaussianRasterizeBackward.cu index 098c2278..cc1103c4 100644 --- a/src/fvdb/detail/ops/gsplat/GaussianRasterizeBackward.cu +++ b/src/fvdb/detail/ops/gsplat/GaussianRasterizeBackward.cu @@ -504,7 +504,7 @@ struct RasterizeBackwardArgs { outMean2dGradientContribution = { sigmaGradientContribution * (conic[0] * delta[0] + conic[1] * delta[1]), sigmaGradientContribution * (conic[1] * delta[0] + conic[2] * delta[1])}; - if (!mAbsGrad) { + if (mAbsGrad) { outMean2dAbsGradientContribution = {abs(outMean2dGradientContribution[0]), abs(outMean2dGradientContribution[1])}; }