Skip to content

Torchtext datasets failed during multi-processing due to lambda functions usage #1716

Closed
@parmeet

Description

@parmeet

Duplicate Issue pytorch/data#397

Issue

Currently, torchtext datasets make use of lambda functions that creates issue for MultiProcessing with DataLoader as pickle doesn't support serialization with lambda functions.

Tracking the issue here as well for visibility

Suggested Resolution

Remove usage of lambda functions

cc: @NivekT , @NicolasHug

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