We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c388a4c commit 4816bdaCopy full SHA for 4816bda
pytorch_lightning/plugins/precision/double.py
@@ -60,7 +60,7 @@ def new_method(*args, **kwargs) -> Any:
60
)
61
62
setattr(model, method_name, new_method if callable(old_method) else old_method)
63
- return _DoublePrecisionPatch(model, method_name, old_method)
+ return cls(model, method_name, old_method)
64
65
66
class DoublePrecisionPlugin(PrecisionPlugin):
0 commit comments