提交 55eb2206 authored 作者: David Warde-Farley's avatar David Warde-Farley

PEP8: fix E303, too many blank lines.

上级 02eecee2
......@@ -891,7 +891,6 @@ class Transpose(gof.op.Op):
assert _is_sparse(x)
out[0] = x.transpose()
def grad(self, (x,), (gz,)):
assert _is_sparse_variable(x) and _is_sparse_variable(gz)
return transpose(gz),
......@@ -1237,7 +1236,6 @@ class StructuredDotCSC(gof.Op):
[tensor.tensor(dtype_out, (False, b.type.broadcastable[1]))])
return r
def perform(self, node, (a_val, a_ind, a_ptr, a_nrows, b), (out,)):
a = scipy.sparse.csc_matrix((a_val, a_ind, a_ptr),
(a_nrows, b.shape[0]),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论