提交 3f4aac37 authored 作者: Frederic's avatar Frederic

make theano-cache cleanup clear compiledir module that are too old.

上级 75f21929
......@@ -60,6 +60,8 @@ elif len(sys.argv) == 2:
theano.gof.compiledir.print_compiledir_content()
elif sys.argv[1] == 'cleanup':
theano.gof.compiledir.cleanup()
cache = get_module_cache(init_args=dict(do_refresh=False))
cache.clear_old()
elif sys.argv[1] == 'unlock':
theano.gof.compilelock.force_unlock()
print 'Lock successfully removed!'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论