在Ubuntu上加速PyTorch数据加载可从以下方面入手:
DataLoader
num_workers
num_workers=4
torch.cuda.amp
pin_memory=True
@lru_cache
turbojpeg
Dataset