提交 2c7e9523 authored 作者: Frederic Bastien's avatar Frederic Bastien

Fix test broken in gh-6285

上级 3e86efec
from __future__ import absolute_import, print_function, division
import os
import os.path
import numpy as np
import theano
import theano.tensor as T
......@@ -9,7 +9,8 @@ floatX = 'float32'
def test_graph_opt_caching():
opt_db_file = os.path.join(theano.config.compiledir, 'optimized_graphs.pkl')
os.remove(opt_db_file)
if os.path.exists(opt_db_file):
os.remove(opt_db_file)
mode = theano.config.mode
if mode in ["DEBUG_MODE", "DebugMode"]:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论