提交 e5ffef54 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed crash on Windows with "theano-cache list"

上级 331217da
...@@ -125,7 +125,7 @@ def print_compiledir_content(): ...@@ -125,7 +125,7 @@ def print_compiledir_content():
file = None file = None
try: try:
try: try:
file = open(os.path.join(compiledir, dir, "key.pkl")) file = open(os.path.join(compiledir, dir, "key.pkl"), 'rb')
keydata = cPickle.load(file) keydata = cPickle.load(file)
ops = list(set([x for x in flatten(keydata.keys) ops = list(set([x for x in flatten(keydata.keys)
if isinstance(x, theano.gof.Op)])) if isinstance(x, theano.gof.Op)]))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论