Skip to content

Commit

Permalink
removed form trainer and early stopping
Browse files Browse the repository at this point in the history
  • Loading branch information
lezwon committed Sep 17, 2020
1 parent 9907ad3 commit ef11533
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions pytorch_lightning/callbacks/early_stopping.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@

torch_inf = torch.tensor(np.Inf)

if TPU_AVAILABLE:
import torch_xla.core.xla_model as xm
import torch_xla



Expand Down
4 changes: 0 additions & 4 deletions pytorch_lightning/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@
from pytorch_lightning.trainer.properties import TrainerProperties

# warnings to ignore in trainer
from pytorch_lightning.utilities.xla_device_utils import tpu_device_exists

TPU_AVAILABLE = tpu_device_exists()

warnings.filterwarnings(
'ignore', message='torch.distributed.reduce_op is deprecated, ' 'please use torch.distributed.ReduceOp instead'
)
Expand Down

0 comments on commit ef11533

Please sign in to comment.