Skip to content

Commit

Permalink
update docs with new binding
Browse files Browse the repository at this point in the history
  • Loading branch information
maturk committed Oct 6, 2023
1 parent 0eecd29 commit c32e869
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions diff_rast/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from .get_tile_bin_edges import GetTileBinEdges
from .map_gaussian_to_intersects import MapGaussiansToIntersects
from .sh import SphericalHarmonics
from .rasterize_forward_kernel import RasterizeForwardKernel
from .version import __version__

__all__ = [
Expand All @@ -18,4 +19,5 @@
"GetTileBinEdges",
"MapGaussiansToIntersects",
"SphericalHarmonics",
"RasterizeForwardKernel",
]
4 changes: 2 additions & 2 deletions diff_rast/rasterize_forward_kernel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Python bindings for mapping gaussians to interset IDs"""
"""Python bindings for forward rasterization"""

from typing import Tuple, Any, Optional

Expand All @@ -11,7 +11,7 @@


class RasterizeForwardKernel(Function):
"""Kernel function for rasterizing each tile.
"""Kernel function for rasterizing and alpha-composing each tile.
Args:
tile_bounds (Tuple): tile dimensions as a len 3 tuple (tiles.x , tiles.y, 1).
Expand Down
4 changes: 3 additions & 1 deletion docs/source/apis/utils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ In addition to the main projection and rasterization functions, a few CUDA kerne

.. autoclass:: MapGaussiansToIntersects

.. autoclass:: ComputeCumulativeIntersects
.. autoclass:: ComputeCumulativeIntersects

.. autoclass:: RasterizeForwardKernel
2 changes: 1 addition & 1 deletion docs/source/tests/tests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ The tests include:
./test_get_tile_bin_edges.py
./test_map_gaussians.py
./test_project_gaussians
./test_rasterize_forward_kernel.py
./test_sh.py
1 change: 1 addition & 0 deletions tests/test_rasterize_forward_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def test_rasterize_forward_kernel():
torch.manual_seed(42)

num_points = 100

means3d = torch.randn((num_points, 3), device=device, requires_grad=True)
scales = torch.randn((num_points, 3), device=device)
colors = torch.randn((num_points, 3), device=device)
Expand Down

0 comments on commit c32e869

Please sign in to comment.