Skip to content

Demux (fork) can not be serialized if there is a child not depleted #171

Closed
@ejguan

Description

@ejguan

🐛 Describe the bug

As shown in pytorch/vision#5187 (comment)

Not just special use case like vision. If users use in_memory_cache or any data structure to capture/store the data from any ChildDataPipe from demux or fork, the pipeline becomes non-serializable from the second epoch.

This may not interfere the DataLoader iteration. But, it is definitely going to block snapshotting.

cc: @NivekT Do you plan to work on this?

Versions

PyTorch core master

Metadata

Metadata

Assignees

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