mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2026-07-28 19:46:09 +08:00
Annotate dunder functions
Summary: Annotate the (return type of the) following dunder functions across the codebase: `__init__()`, `__len__()`, `__getitem__()` Reviewed By: nikhilaravi Differential Revision: D29001801 fbshipit-source-id: 928d9e1c417ffe01ab8c0445311287786e997c7c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
35855bf860
commit
64289a491d
@@ -49,7 +49,7 @@ class EmissionAbsorptionRaymarcher(torch.nn.Module):
|
||||
elements along the ray direction.
|
||||
"""
|
||||
|
||||
def __init__(self, surface_thickness: int = 1):
|
||||
def __init__(self, surface_thickness: int = 1) -> None:
|
||||
"""
|
||||
Args:
|
||||
surface_thickness: Denotes the overlap between the absorption
|
||||
@@ -128,7 +128,7 @@ class AbsorptionOnlyRaymarcher(torch.nn.Module):
|
||||
It then returns `opacities = 1 - total_transmission`.
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self) -> None:
|
||||
super().__init__()
|
||||
|
||||
def forward(
|
||||
|
||||
Reference in New Issue
Block a user