提交 5dd297be authored 作者: Ian Goodfellow's avatar Ian Goodfellow

pep8 neighbours.py

上级 b483da5e
...@@ -59,7 +59,8 @@ class Images2Neibs(Op): ...@@ -59,7 +59,8 @@ class Images2Neibs(Op):
for j in xrange(list 2 dim) for j in xrange(list 2 dim)
for k in <image column coordinates> for k in <image column coordinates>
for l in <image row coordinates> for l in <image row coordinates>
output[idx,:] = flattened version of ten4[i,j,l:l+r,k:k+c] output[idx,:]
= flattened version of ten4[i,j,l:l+r,k:k+c]
idx += 1 idx += 1
(note: the op isn't necessarily implemented internally with these (note: the op isn't necessarily implemented internally with these
for loops, they're just the easiest way to describe the output pattern) for loops, they're just the easiest way to describe the output pattern)
...@@ -310,5 +311,3 @@ def neibs2images(neibs, neib_shape, original_shape, mode='valid'): ...@@ -310,5 +311,3 @@ def neibs2images(neibs, neib_shape, original_shape, mode='valid'):
raise NotImplementedError("neibs2images do not support mode=%s" % mode) raise NotImplementedError("neibs2images do not support mode=%s" % mode)
return output_4d return output_4d
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论