Skip to content

Commit 4816bda

Browse files
Update pytorch_lightning/plugins/precision/double.py
Co-authored-by: Justus Schock <[email protected]>
1 parent c388a4c commit 4816bda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/plugins/precision/double.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def new_method(*args, **kwargs) -> Any:
6060
)
6161

6262
setattr(model, method_name, new_method if callable(old_method) else old_method)
63-
return _DoublePrecisionPatch(model, method_name, old_method)
63+
return cls(model, method_name, old_method)
6464

6565

6666
class DoublePrecisionPlugin(PrecisionPlugin):

0 commit comments

Comments
 (0)