mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2026-03-03 02:35:58 +08:00
Make Module.__init__ automatic
Summary: If a configurable class inherits torch.nn.Module and is instantiated, automatically call `torch.nn.Module.__init__` on it before doing anything else. Reviewed By: shapovalov Differential Revision: D42760349 fbshipit-source-id: 409894911a4252b7987e1fd218ee9ecefbec8e62
This commit is contained in:
committed by
Facebook GitHub Bot
parent
97f8f9bf47
commit
9540c29023
@@ -38,9 +38,6 @@ class RayPointRefiner(Configurable, torch.nn.Module):
|
||||
random_sampling: bool
|
||||
add_input_samples: bool = True
|
||||
|
||||
def __post_init__(self) -> None:
|
||||
super().__init__()
|
||||
|
||||
def forward(
|
||||
self,
|
||||
input_ray_bundle: ImplicitronRayBundle,
|
||||
|
||||
Reference in New Issue
Block a user