Skip to content

support customized dataLoaders? #3322

@ifiaposto

Description

@ifiaposto

DataLoaderAdapter, and as a result DataLoaderShard returned by prepare, sets:

self.base_dataloader = DataLoader(dataset, batch_sampler=batch_sampler, **kwargs)

I think it would be very useful if prepare_dataloader passed the type of the original dataloader when creating the DataLoaderShard and extend DataloaderShard to support customized dataloader types. Otherwise, the functionality seems very limited.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions