Update trainer.py

This commit is contained in:
William Falcon 2019-07-27 13:41:38 -04:00 committed by GitHub
parent 0ce180f6ec
commit a3bd66167b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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