Skip to content

Commit

Permalink
* correct a typo to fix #373 (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
jckhng authored Sep 3, 2024
1 parent 61be4a7 commit 9c6e591
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,11 @@ def test_projection(test_data, fused: bool, calc_compensations: bool, ortho: boo
)

# backward
v_means2d = torch.randn_like(means2d) * radii[..., None]
v_depths = torch.randn_like(depths) * radii
v_conics = torch.randn_like(conics) * radii[..., None]
v_means2d = torch.randn_like(means2d) * valid[..., None]
v_depths = torch.randn_like(depths) * valid
v_conics = torch.randn_like(conics) * valid[..., None]
if calc_compensations:
v_compensations = torch.randn_like(compensations) * radii
v_compensations = torch.randn_like(compensations) * valid
v_viewmats, v_quats, v_scales, v_means = torch.autograd.grad(
(means2d * v_means2d).sum()
+ (depths * v_depths).sum()
Expand Down

0 comments on commit 9c6e591

Please sign in to comment.