提交 eba65e5e authored 作者: Francesco Visin's avatar Francesco Visin

Fix PEP8 errors

上级 f649149a
...@@ -46,8 +46,9 @@ def max_pool_2d_same_size(input, patch_size): ...@@ -46,8 +46,9 @@ def max_pool_2d_same_size(input, patch_size):
def pool_2d(input, ds, ignore_border=None, st=None, padding=(0, 0), def pool_2d(input, ds, ignore_border=None, st=None, padding=(0, 0),
mode='max'): mode='max'):
""" """Downscale the input by a specified factor
Takes as input a N-D tensor, where N >= 2. It downscales the input image by Takes as input a N-D tensor, where N >= 2. It downscales the input image by
the specified factor, by keeping only the maximum value of non-overlapping the specified factor, by keeping only the maximum value of non-overlapping
patches of size (ds[0],ds[1]) patches of size (ds[0],ds[1])
...@@ -888,7 +889,7 @@ class AveragePoolGrad(PoolGrad): ...@@ -888,7 +889,7 @@ class AveragePoolGrad(PoolGrad):
ggx, = grads ggx, = grads
return [theano.tensor.zeros_like(x), return [theano.tensor.zeros_like(x),
Pool(self.ds, ignore_border=self.ignore_border, Pool(self.ds, ignore_border=self.ignore_border,
st=self.st, padding=self.padding, mode=self.mode)(ggx)] st=self.st, padding=self.padding, mode=self.mode)(ggx)]
class DownsampleFactorMaxGradGrad(Op): class DownsampleFactorMaxGradGrad(Op):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论