We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c383f6 commit 3827ccbCopy full SHA for 3827ccb
python/tvm/contrib/pickle_memoize.py
@@ -40,8 +40,12 @@ class Cache(object):
40
cache_by_key = {}
41
def __init__(self, key, save_at_exit):
42
cache_dir = ".pkl_memoize_py{0}".format(sys.version_info[0])
43
- if not os.path.exists(cache_dir):
+ try:
44
os.mkdir(cache_dir)
45
+ except FileExistsError:
46
+ pass
47
+ else:
48
+ self.cache = {}
49
self.path = os.path.join(cache_dir, key)
50
if os.path.exists(self.path):
51
try:
0 commit comments