提交 4a23db92 authored 作者: Frederic's avatar Frederic

Set the file in the compiledir, not the case. Some user set the compiledir…

Set the file in the compiledir, not the case. Some user set the compiledir directly, not the base_compiledir and this make that sometimes, the base_compiledir isn't working.
上级 5754e615
...@@ -9,7 +9,7 @@ class T_load_tensor(unittest.TestCase): ...@@ -9,7 +9,7 @@ class T_load_tensor(unittest.TestCase):
def setUp(self): def setUp(self):
self.data = numpy.arange(5, dtype=numpy.int32) self.data = numpy.arange(5, dtype=numpy.int32)
self.filename = os.path.join( self.filename = os.path.join(
theano.config.base_compiledir, theano.config.compiledir,
"_test.npy") "_test.npy")
numpy.save(self.filename, self.data) numpy.save(self.filename, self.data)
...@@ -52,5 +52,5 @@ class T_load_tensor(unittest.TestCase): ...@@ -52,5 +52,5 @@ class T_load_tensor(unittest.TestCase):
def tearDown(self): def tearDown(self):
os.remove(os.path.join( os.remove(os.path.join(
theano.config.base_compiledir, theano.config.compiledir,
"_test.npy")) "_test.npy"))
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论