mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-13 13:10:13 +08:00
15 lines
296 B
Python
15 lines
296 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class TestDataloaderVariations(ABC):
|
|
|
|
@abstractmethod
|
|
def dataloader(self, train: bool):
|
|
"""placeholder"""
|
|
|
|
def test_dataloader(self):
|
|
return self.dataloader(train=False)
|
|
|
|
def test_dataloader__empty(self):
|
|
return None
|