提交 bdca0701 authored 作者: Frederic's avatar Frederic

pep8.

上级 3021c1e3
......@@ -64,6 +64,7 @@ def random_lil(shape, dtype, nnz):
value)
return rval
class T_verify_grad_sparse(unittest.TestCase):
class FailOp(gof.op.Op):
def __init__(self, structured):
......@@ -87,7 +88,7 @@ class T_verify_grad_sparse(unittest.TestCase):
def grad(self, (x,), (gz,)):
assert _is_sparse_variable(x) and _is_sparse_variable(gz)
if self.structured:
return sp_ones_like(x)*dense_from_sparse(gz),
return sp_ones_like(x) * dense_from_sparse(gz),
else:
return gz,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论