提交 13dd44bc authored 作者: Frederic's avatar Frederic

Fix crash in theano-cache purge. fix gh-2428.

上级 ea3c24c4
......@@ -666,6 +666,7 @@ class ModuleCache(object):
# Go through directories in alphabetical order to ensure consistent
# behavior.
subdirs = sorted(os.listdir(self.dirname))
files, root = None, None # To make sure the del wor
for root in subdirs:
root = os.path.join(self.dirname, root)
key_pkl = os.path.join(root, 'key.pkl')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论