提交 fd08055e authored 作者: Ian Goodfellow's avatar Ian Goodfellow

pep8 sparse/basic.py

上级 142616e7
...@@ -786,7 +786,7 @@ class CSM(gof.Op): ...@@ -786,7 +786,7 @@ class CSM(gof.Op):
copy=False) copy=False)
def connection_pattern(self, node): def connection_pattern(self, node):
return [[True],[False],[False],[False]] return [[True], [False], [False], [False]]
def grad(self, (x_data, x_indices, x_indptr, x_shape), (g_out,)): def grad(self, (x_data, x_indices, x_indptr, x_shape), (g_out,)):
g_data, g_indices, g_indptr, g_shape = csm_properties(g_out) g_data, g_indices, g_indptr, g_shape = csm_properties(g_out)
...@@ -2152,7 +2152,7 @@ class MulSV(gof.op.Op): ...@@ -2152,7 +2152,7 @@ class MulSV(gof.op.Op):
if x.type.dtype != y.type.dtype: if x.type.dtype != y.type.dtype:
raise NotImplementedError( raise NotImplementedError(
"MulSV not implemented for differing dtypes." "MulSV not implemented for differing dtypes."
"Got %s and %s." % (str(x.type.dtype),str(y.type.dtype))) "Got %s and %s." % (str(x.type.dtype), str(y.type.dtype)))
return gof.Apply(self, return gof.Apply(self,
[x, y], [x, y],
[SparseType(dtype=x.type.dtype, [SparseType(dtype=x.type.dtype,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论