Questions tagged [klepto]

A python library for persistent caching to memory, disk, or database

klepto is a python library for persistent caching to memory, disk, or database.

17 questions
0
votes
1 answer

use klepto to cache by function name and args

I'm trying to use klepto as a cache which hashes off the args and function name, is this possible? e.g. so using a dir_cache i would be able to @inf_cache(cache=dir_archive(cached=False)) def func1(x, y): return x +…
chris
  • 7,222
  • 5
  • 31
  • 37
-1
votes
2 answers

Pickle File Memory Error - kelpto questoin

I'm getting a memory error when trying to pickle a large numpy array for a deep learning problem shape: (7451, 1500, 1500, 1)). That stated, I see a few posts on klepto and read the docs but I'm not sure how to actually use klepto to save as a…
Jordan
  • 1,415
  • 3
  • 18
  • 44
1
2