2020-04-16 02:16:40 +00:00
|
|
|
from abc import ABC, abstractmethod
|
|
|
|
|
|
|
|
|
|
|
|
class ValDataloaderVariations(ABC):
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
def dataloader(self, train: bool):
|
|
|
|
"""placeholder"""
|
|
|
|
|
|
|
|
def val_dataloader(self):
|
|
|
|
return self.dataloader(train=False)
|
2020-05-04 20:51:39 +00:00
|
|
|
|
|
|
|
def val_dataloader__multiple(self):
|
|
|
|
return [self.dataloader(train=False),
|
|
|
|
self.dataloader(train=False)]
|