提交 1fef9423 authored 作者: Iban Harlouchet's avatar Iban Harlouchet 提交者: Frederic

flake8 fortheano/tensor/nnet/conv3d2d.py

上级 80a8289d
...@@ -246,7 +246,7 @@ def conv3d(signals, filters, ...@@ -246,7 +246,7 @@ def conv3d(signals, filters,
# now sum out along the Tf to get the output # now sum out along the Tf to get the output
# but we have to sum on a diagonal through the Tf and Ts submatrix. # but we have to sum on a diagonal through the Tf and Ts submatrix.
if border_mode[0] == 'valid': if border_mode[0] == 'valid':
if _filters_shape_5d[1]!=1: if _filters_shape_5d[1] != 1:
out_5d = diagonal_subtensor(out_tmp, 1, 3).sum(axis=3) out_5d = diagonal_subtensor(out_tmp, 1, 3).sum(axis=3)
else: # for Tf==1, no sum along Tf, the Ts-axis of the output is unchanged! else: # for Tf==1, no sum along Tf, the Ts-axis of the output is unchanged!
out_5d = out_tmp.reshape(( out_5d = out_tmp.reshape((
......
...@@ -89,7 +89,6 @@ whitelist_flake8 = [ ...@@ -89,7 +89,6 @@ whitelist_flake8 = [
"tensor/signal/tests/test_conv.py", "tensor/signal/tests/test_conv.py",
"tensor/signal/tests/test_downsample.py", "tensor/signal/tests/test_downsample.py",
"tensor/nnet/__init__.py", "tensor/nnet/__init__.py",
"tensor/nnet/conv3d2d.py",
"tensor/nnet/conv.py", "tensor/nnet/conv.py",
"tensor/nnet/neighbours.py", "tensor/nnet/neighbours.py",
"tensor/nnet/tests/test_conv.py", "tensor/nnet/tests/test_conv.py",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论