Some simple (yet not most efficient) solutions:
torchvision.datasets.ImageFolder/torchvision.datasets.DatasetFolder+data.DataLoaderlmdb(Lightning Memory-mapped database manager)
Key technologies:
lapackfor process the dataMagmasuuport: MAGMA is a collection of next generation linear algebra (LA) GPU accelerated libraries designed and implemented by the team that developed LAPACK and ScaLAPACK.