tfjs-data icon indicating copy to clipboard operation
tfjs-data copied to clipboard

Introduce caching infrastucture, including a memory-only cache

Open davidsoergel opened this issue 7 years ago • 1 comments

This sets up some infrastructure for caching, but doesn't fully flesh it out yet. So far this implements only a memory cache that memoizes everything and never evicts/disposes, so it only works for small datasets. But I think this sets us up for future PRs that implement a strategy of progressively evicting from GPU to main memory and then to disk.


This change is Reviewable

davidsoergel avatar Aug 10 '18 15:08 davidsoergel

This will fix https://github.com/tensorflow/tfjs/issues/1025

davidsoergel avatar Dec 20 '18 17:12 davidsoergel