inferno.io.core package

Submodules

inferno.io.core.base module

class inferno.io.core.base.IndexSpec(index=None, base_sequence_at_index=None)[source]

Bases: object

Class to wrap any extra index information a Dataset object might want to send back. This could be useful in (say) inference, where we would wish to (asynchronously) know more about the current input.

class inferno.io.core.base.SyncableDataset[source]

Bases: torch.utils.data.dataset.Dataset

sync_with(dataset)[source]

inferno.io.core.concatenate module

class inferno.io.core.concatenate.Concatenate(*datasets, transforms=None)[source]

Bases: torch.utils.data.dataset.Dataset

Concatenates mutliple datasets to one. This class does not implement synchronization primitives.

map_index(index)[source]

inferno.io.core.data_utils module

inferno.io.core.data_utils.defines_base_sequence(dataset)[source]
inferno.io.core.data_utils.implements_sync_primitives(dataset)[source]

inferno.io.core.zip module

class inferno.io.core.zip.Zip(*datasets, sync=False, transforms=None)[source]

Bases: inferno.io.core.base.SyncableDataset

Zip two or more datasets to one dataset. If the datasets implement synchronization primitives, they are all synchronized with the first dataset.

sync_datasets()[source]
sync_with(dataset)[source]
class inferno.io.core.zip.ZipReject(*datasets, sync=False, transforms=None, rejection_dataset_indices, rejection_criterion)[source]

Bases: inferno.io.core.zip.Zip

Extends Zip by the functionality of rejecting samples that don’t fulfill a specified rejection criterion.

fetch_from_rejection_datasets(index)[source]

Module contents