From 522af585049785eb3e34394a2b5bf0b550e83de7 Mon Sep 17 00:00:00 2001 From: William Falcon Date: Wed, 3 Jul 2019 17:05:20 -0400 Subject: [PATCH] clean up dead code --- pytorch_lightning/callbacks/pt_callbacks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytorch_lightning/callbacks/pt_callbacks.py b/pytorch_lightning/callbacks/pt_callbacks.py index e560b306de..2daf449cf5 100644 --- a/pytorch_lightning/callbacks/pt_callbacks.py +++ b/pytorch_lightning/callbacks/pt_callbacks.py @@ -1,6 +1,6 @@ import numpy as np import os, shutil -from pytorch_lightning.pt_overrides.override_data_parallel import LightningDataParallel +from pytorch_lightning.pt_overrides.override_data_parallel import LightningDistributedDataParallel class Callback(object): @@ -34,7 +34,7 @@ class Callback(object): self.params = params def set_model(self, model): - if type(model) is LightningDataParallel: + if type(model) is LightningDistributedDataParallel: model = model.module self.model = model