Skip to content

Commit

Permalink
fix deprecated custom forward method
Browse files Browse the repository at this point in the history
  • Loading branch information
ziw-liu committed Aug 30, 2024
1 parent 9b6e3f2 commit 4babd35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion viscy/light/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def __init__(
self.l2_alpha = l2_alpha
self.ms_dssim_alpha = ms_dssim_alpha

@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
@torch.amp.custom_fwd(cast_inputs=torch.float32)
def forward(self, preds, target):
loss = 0
if self.l1_alpha:
Expand Down

0 comments on commit 4babd35

Please sign in to comment.