Accessing a Dataset worker's Dataset class

A DataLoader divides a Dataset across many workers. Is there a way to access (from outside the Dataset) a specific worker’s Dataset class instance?

For example:

my_dataset = DataLoader(...)

a_dataset_instance = my_dataloader.get_worker_instance(id=worker_id)

Is this possible?

From your worker, call torch.utils.data.get_worker_info().dataset.

Sorry, I mean from outside the worker.