deep-learning-with-pytorch / dlwpt-code

Code for the book Deep Learning with PyTorch by Eli Stevens, Luca Antiga, and Thomas Viehmann.
https://www.manning.com/books/deep-learning-with-pytorch
4.69k stars 1.99k forks source link

GZipDisk not actually compressing #64

Open rongcuid opened 3 years ago

rongcuid commented 3 years ago

No matter what I do, the caching disk always behave as if the backend is using Disk, but slower. I checked individual cache files like these: /063/33/c5/39aa28cfb90c6d0dfecab0496392.val Both the Disk version and GzipDisk version (with "patches" from issues working around BytesIO and BytesType errors) give a 145K file size.

Now, I am not running directly from this repo, but actually coding along. However, the caching code is copied and modified directly from this repo.