gaussian-grouping icon indicating copy to clipboard operation
gaussian-grouping copied to clipboard

question on the cuda rasterizer

Open kamwoh opened this issue 5 months ago • 1 comments

https://github.com/lkeab/gaussian-grouping/blob/fd359422059ef61cce19db06f63e9f3e01156a84/submodules/diff-gaussian-rasterization/cuda_rasterizer/backward.cu#L455C2-L459C59

if (inside)
    for (int i = 0; i < C; i++)
	dL_dpixel[i] = dL_dpixels[i * H * W + pix_id];
    for (int i = 0; i < O; i++)
	dL_dpixel_obj[i] = dL_dpixels_objs[i * H * W + pix_id];

hi, for the code above, should the second for loop be enclosed by the if statement? if so, should we add curly brackets?

kamwoh avatar Jan 17 '24 22:01 kamwoh