Skip to content

Commit 8460e0d

Browse files
committed
removed form trainer and early stopping
1 parent bfb8c62 commit 8460e0d

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

pytorch_lightning/callbacks/early_stopping.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434

3535
torch_inf = torch.tensor(np.Inf)
3636

37-
if TPU_AVAILABLE:
38-
import torch_xla.core.xla_model as xm
39-
import torch_xla
4037

4138

4239

pytorch_lightning/trainer/trainer.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@
5959
from pytorch_lightning.trainer.properties import TrainerProperties
6060

6161
# warnings to ignore in trainer
62-
from pytorch_lightning.utilities.xla_device_utils import tpu_device_exists
63-
64-
TPU_AVAILABLE = tpu_device_exists()
65-
6662
warnings.filterwarnings(
6763
'ignore', message='torch.distributed.reduce_op is deprecated, ' 'please use torch.distributed.ReduceOp instead'
6864
)

0 commit comments

Comments
 (0)