more code blocks for readthedocs

Summary: More rst syntax fixes

Reviewed By: davidsonic

Differential Revision: D40977328

fbshipit-source-id: a3a3accbf2ba7cd9c84a0a82d0265010764a9d61
This commit is contained in:
Jeremy Reizenstein
2022-11-29 03:13:40 -08:00
committed by Facebook GitHub Bot
parent 94f321fa3d
commit a2c6af9250
14 changed files with 167 additions and 174 deletions

View File

@@ -208,8 +208,8 @@ def add_pointclouds_to_volumes(
of `initial_volumes` with its `features` and `densities` updated with the
result of the pointcloud addition.
Example:
```
Example::
# init a random point cloud
pointclouds = Pointclouds(
points=torch.randn(4, 100, 3), features=torch.rand(4, 100, 5)
@@ -229,7 +229,6 @@ def add_pointclouds_to_volumes(
initial_volumes=initial_volumes,
mode="trilinear",
)
```
Args:
pointclouds: Batch of 3D pointclouds represented with a `Pointclouds`