Skip to content

auto_dataloader can auto set pin_memory if appropriate #1128

@vfdev-5

Description

@vfdev-5

🚀 Feature

Idea is to automatically set pin_memory=True if idist.backend() is nccl or default device is cuda.

In the code we can omit this param instead of

pin_memory="cuda" in idist.device().type,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions