提交 d90df77e authored 作者: notoraptor's avatar notoraptor

Replace system `rm` command with call to `os.remove()`.

上级 f46e5153
......@@ -8,8 +8,8 @@ floatX = 'float32'
def test_graph_opt_caching():
opt_db_file = theano.config.compiledir + '/optimized_graphs.pkl'
os.system('rm %s' % opt_db_file)
opt_db_file = os.path.join(theano.config.compiledir, 'optimized_graphs.pkl')
os.remove(opt_db_file)
mode = theano.config.mode
if mode in ["DEBUG_MODE", "DebugMode"]:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论