Skip to content

custome collate function cannot get _use_shared_memory #17909

@cy69855522

Description

@cy69855522

Thx a lot for such a wonderful package~
But when I wrote a custom function for the Dataloader's collate_fn, I found I cannot get the value of variable - “_use_shared_memory” in torch.utils.data._utils.collate.py
ModuleNotFoundError: No module named 'torch.utils.data._utils'
I was thinking if you could give me some suggestions. I don't want to change the original code of pytorch locally.

Metadata

Metadata

Assignees

Labels

module: dataloaderRelated to torch.utils.data.DataLoader and SamplertriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions