Skip to content

Commit 4896815

Browse files
BordawilliamFalcon
andauthored
remove deprecated data_loader (#1077)
* change version in CHangelog * warning * remove der data_loader Co-authored-by: William Falcon <waf2107@columbia.edu>
1 parent 3d18099 commit 4896815

File tree

6 files changed

+5
-10
lines changed

6 files changed

+5
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
66

7-
## [Unreleased]
7+
## [0.7.0] - 2020-03-06
88

99
### Added
1010

pl_examples/basic_examples/lightning_module_template.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@
1212
import torchvision.transforms as transforms
1313
from torch import optim
1414
from torch.utils.data import DataLoader
15-
from torch.utils.data.distributed import DistributedSampler
1615
from torchvision.datasets import MNIST
1716

1817
from pytorch_lightning.core import LightningModule
19-
from pytorch_lightning.core import data_loader
2018

2119

2220
class LightningTemplateModel(LightningModule):

pl_examples/domain_templates/gan.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from torchvision.datasets import MNIST
2121

2222
from pytorch_lightning.core import LightningModule
23-
from pytorch_lightning.core import data_loader
2423
from pytorch_lightning.trainer import Trainer
2524

2625

pytorch_lightning/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Root package info."""
22

3-
__version__ = '0.6.3.dev'
3+
__version__ = '0.6.4.dev'
44
__author__ = 'William Falcon et al.'
55
__author_email__ = 'waf2107@columbia.edu'
66
__license__ = 'Apache-2.0'
@@ -24,14 +24,13 @@
2424
# We are not importing the rest of the scikit during the build
2525
# process, as it may not be compiled yet
2626
else:
27-
from .core import data_loader, LightningModule
27+
from .core import LightningModule
2828
from .trainer import Trainer
2929
from .callbacks import Callback
3030

3131
__all__ = [
3232
'Trainer',
3333
'LightningModule',
3434
'Callback',
35-
'data_loader',
3635
]
3736
# __call__ = __all__

pytorch_lightning/core/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,7 @@ def test_dataloader(self):
312312
313313
"""
314314

315-
from .decorators import data_loader
316315
from .lightning import LightningModule
317316

318-
__all__ = ['LightningModule', 'data_loader']
317+
__all__ = ['LightningModule']
319318
# __call__ = __all__

tests/test_cpu_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import torch
44

55
import tests.models.utils as tutils
6-
from pytorch_lightning import Trainer, data_loader
6+
from pytorch_lightning import Trainer
77
from pytorch_lightning.callbacks import (
88
EarlyStopping,
99
)

0 commit comments

Comments
 (0)