gigl.src.training.v1.lib.data_loaders.LoopyIterableDataset#
- class gigl.src.training.v1.lib.data_loaders.tf_records_iterable_dataset.LoopyIterableDataset(iterable_dataset: IterableDataset[T])#
Bases:
IterableDataset
,Generic
[T
]Takes as input an IterableDataset and makes it “loopy,” so that the dataset can be iterated over cyclically.
Methods
- classmethod __class_getitem__()#
Represent a PEP 585 generic type
E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).
- __init__(iterable_dataset: IterableDataset[T]) None #
- classmethod __init_subclass__(*args, **kwargs)#
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- classmethod __subclasshook__(C)#
Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
- __weakref__#
list of weak references to the object (if defined)