diff --git a/pytorch_lightning/models/trainer.py b/pytorch_lightning/models/trainer.py index ff11150b26..4b741c9f12 100644 --- a/pytorch_lightning/models/trainer.py +++ b/pytorch_lightning/models/trainer.py @@ -24,7 +24,7 @@ from pytorch_lightning.utils.debugging import MisconfigurationException try: from apex import amp APEX_AVAILABLE = True -except ModuleNotFoundError: # pragma: no cover +except Exception: APEX_AVAILABLE = False