osc.data.iterable_dataloader.MyIterableDataset

class MyIterableDataset(data_root, transform)[source]

Bases: torch.utils.data.dataset.IterableDataset

Methods

register_datapipe_as_function

register_function

reinforce_type

Reinforce the type for DataPipe instance.

set_reduce_ex_hook

Attributes

functions

reduce_ex_hook

type

reinforce_type(expected_type)

Reinforce the type for DataPipe instance. And the ‘expected_type’ is required to be a subtype of the original type hint to restrict the type requirement of DataPipe instance.