_check_and_init_precision: PrecisionPlugin is enabled even _precision_plugin_flag is None #13172
Replies: 1 comment
-
Hi @wohenniubi, can I ask what makes you think so? Are you seeing any misbehaviour? If a user gives a So, if the provided but if not, it'll be guaranteed that |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In lightning 1.6.x, for the code in accelerator_connector.py#L645 ~ accelerator_connector.py#L658,
https://github.com/PyTorchLightning/pytorch-lightning/blob/dd475183227644a8d22dca3deb18c99fb0a9b2c4/pytorch_lightning/trainer/connectors/accelerator_connector.py#L645
It's better to enable them only when self._precision_plugin_flag is not None. E.g.
Beta Was this translation helpful? Give feedback.
All reactions