提交 5f3da99b authored 作者: Lijun Xue's avatar Lijun Xue

flake8 fix

上级 b45d4cf1
...@@ -17,7 +17,7 @@ class Test_reallocation(unittest.TestCase): ...@@ -17,7 +17,7 @@ class Test_reallocation(unittest.TestCase):
x = T.scalar('x') x = T.scalar('x')
y = T.scalar('y') y = T.scalar('y')
z = T.tanh(3*x + y) + T.cosh(x + 5*y) z = T.tanh(3 * x + y) + T.cosh(x + 5 * y)
m = theano.compile.get_mode(theano.Mode(linker='vm_nogc')) m = theano.compile.get_mode(theano.Mode(linker='vm_nogc'))
m = m.excluding('fusion', 'inplace') m = m.excluding('fusion', 'inplace')
...@@ -37,7 +37,7 @@ class Test_reallocation(unittest.TestCase): ...@@ -37,7 +37,7 @@ class Test_reallocation(unittest.TestCase):
keys_copy.remove(i) keys_copy.remove(i)
for o in keys_copy: for o in keys_copy:
if (storage_map[i][0] and if (storage_map[i][0] and
storage_map[i][0] == storage_map[o][0]): storage_map[i][0] == storage_map[o][0]):
return [True, storage_map[o][0]] return [True, storage_map[o][0]]
return [False, None] return [False, None]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论