mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-24 13:50:25 +08:00
Fixing tests (#936)
* abs import * rename test model * update trainer * revert test_step check * move tags * fix test_step * clean tests * fix template * update dataset path * fix parent order
This commit is contained in:
@@ -8,9 +8,10 @@ from pytorch_lightning.callbacks import (
|
||||
EarlyStopping,
|
||||
)
|
||||
from tests.models import (
|
||||
TestModelBase,
|
||||
LightTrainDataloader,
|
||||
LightningTestModel,
|
||||
LightningTestModelBase,
|
||||
LightningTestMixin,
|
||||
LightTestMixin,
|
||||
)
|
||||
|
||||
|
||||
@@ -121,7 +122,7 @@ def test_running_test_without_val(tmpdir):
|
||||
"""Verify `test()` works on a model with no `val_loader`."""
|
||||
tutils.reset_seed()
|
||||
|
||||
class CurrentTestModel(LightningTestMixin, LightningTestModelBase):
|
||||
class CurrentTestModel(LightTrainDataloader, LightTestMixin, TestModelBase):
|
||||
pass
|
||||
|
||||
hparams = tutils.get_hparams()
|
||||
@@ -281,7 +282,7 @@ def test_tbptt_cpu_model(tmpdir):
|
||||
def __len__(self):
|
||||
return 1
|
||||
|
||||
class BpttTestModel(LightningTestModelBase):
|
||||
class BpttTestModel(LightTrainDataloader, TestModelBase):
|
||||
def __init__(self, hparams):
|
||||
super().__init__(hparams)
|
||||
self.test_hidden = None
|
||||
|
||||
Reference in New Issue
Block a user