Commit 2ba742c 1 parent 966d09f commit 2ba742c Copy full SHA for 2ba742c
File tree 1 file changed +3
-3
lines changed
moai/monads/render/nvdiffrast
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def __init__(
25
25
self .resolution = [height , width ]
26
26
self .decomposed = decomposed
27
27
28
- # @torch.amp.custom_fwd(device_type="cuda", cast_inputs=torch.float32)
28
+ @torch .amp .custom_fwd (device_type = "cuda" , cast_inputs = torch .float32 )
29
29
def forward (
30
30
self ,
31
31
ndc_vertices : torch .Tensor ,
@@ -98,7 +98,7 @@ def __init__(
98
98
):
99
99
super ().__init__ ()
100
100
101
- # @torch.amp.custom_fwd(device_type="cuda", cast_inputs=torch.float32)
101
+ @torch .amp .custom_fwd (device_type = "cuda" , cast_inputs = torch .float32 )
102
102
def forward (
103
103
self ,
104
104
attributes : torch .Tensor ,
@@ -125,7 +125,7 @@ def __init__(
125
125
super ().__init__ ()
126
126
self .pos_grad_boost = position_gradient_scale
127
127
128
- # @torch.amp.custom_fwd(device_type="cuda", cast_inputs=torch.float32)
128
+ @torch .amp .custom_fwd (device_type = "cuda" , cast_inputs = torch .float32 )
129
129
def forward (
130
130
self ,
131
131
attributes : torch .Tensor ,
You can’t perform that action at this time.
0 commit comments