-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix big bug in size estimation of array buffers
An off-by-one bug in `estimated_bytes_size` caused the size estimations of Tensors to completely ignore the actual payload, causing the memory consumption of images to be vastly underestimated. I decided to rewrite the code to be more clear for future readers.
- Loading branch information
Showing
1 changed file
with
34 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters