Skip to main content

Dataloader with concurrency improvements (from https://github.com/iarai/concurrent-dataloader)

Project description

PytorchConcurrentDataloader

publish

Minimal version of the ConcurrentDataloader repository published to pip.

Setup

pip install pytorch-concurrent-dataloader

Usage

  • replace torch.utils.data.DataLoader with pytorch_concurrent_dataloader.DataLoader
  • pass new parameters for concurrent dataloading
from pytorch_concurrent_dataloader import DataLoader
dataloader = DataLoader(
    # pass old parameters as usual
    dataset=..., 
    batch_size=...,
    num_workers=...,
    # pass new parameters
    num_fetch_workers=...,
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytorch_concurrent_dataloader-0.0.7.tar.gz (29.2 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page