tfjs-data
tfjs-data copied to clipboard
Introduce caching infrastucture, including a memory-only cache
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 will fix https://github.com/tensorflow/tfjs/issues/1025