diff --git a/pytorch_lightning/models/trainer.py b/pytorch_lightning/models/trainer.py index a5c90711..7c45f35a 100644 --- a/pytorch_lightning/models/trainer.py +++ b/pytorch_lightning/models/trainer.py @@ -223,7 +223,7 @@ class Trainer(TrainerIO): this run will NOT use 16 bit precision ''' - warnings.warn(msg) + raise ModuleNotFoundError(msg) @property def data_parallel(self):