Skip to content

Commit 2ba742c

Browse files
committed
Update render.py
1 parent 966d09f commit 2ba742c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

moai/monads/render/nvdiffrast/render.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(
2525
self.resolution = [height, width]
2626
self.decomposed = decomposed
2727

28-
# @torch.amp.custom_fwd(device_type="cuda", cast_inputs=torch.float32)
28+
@torch.amp.custom_fwd(device_type="cuda", cast_inputs=torch.float32)
2929
def forward(
3030
self,
3131
ndc_vertices: torch.Tensor,
@@ -98,7 +98,7 @@ def __init__(
9898
):
9999
super().__init__()
100100

101-
# @torch.amp.custom_fwd(device_type="cuda", cast_inputs=torch.float32)
101+
@torch.amp.custom_fwd(device_type="cuda", cast_inputs=torch.float32)
102102
def forward(
103103
self,
104104
attributes: torch.Tensor,
@@ -125,7 +125,7 @@ def __init__(
125125
super().__init__()
126126
self.pos_grad_boost = position_gradient_scale
127127

128-
# @torch.amp.custom_fwd(device_type="cuda", cast_inputs=torch.float32)
128+
@torch.amp.custom_fwd(device_type="cuda", cast_inputs=torch.float32)
129129
def forward(
130130
self,
131131
attributes: torch.Tensor,

0 commit comments

Comments
 (0)