libffcv / ffcv

FFCV: Fast Forward Computer Vision (and other ML workloads!)
https://ffcv.io
Apache License 2.0
2.8k stars 180 forks source link

Fix page size error message #235

Closed NicolasHug closed 1 year ago

NicolasHug commented 1 year ago

" page size is {self.page_size}" should be an f-string. The current error message looks like this:

ValueError: Tried allocating 11614464 but page size is {self.page_size}