提交 02eecee2 authored 作者: David Warde-Farley's avatar David Warde-Farley

PEP8: fix E203 (colon, whitespace).

上级 ba191b0e
...@@ -600,7 +600,7 @@ class CSMGrad(gof.op.Op): ...@@ -600,7 +600,7 @@ class CSMGrad(gof.op.Op):
def __init__(self, kmap=None): def __init__(self, kmap=None):
self.kmap = kmap self.kmap = kmap
if self.kmap is None: if self.kmap is None:
self.view_map = {0 : [1]} self.view_map = {0: [1]}
def __eq__(self, other): def __eq__(self, other):
return type(self) == type(other) and _kmap_eq(self.kmap, other.kmap) return type(self) == type(other) and _kmap_eq(self.kmap, other.kmap)
...@@ -870,8 +870,8 @@ get_item_scalar = GetItemScalar() ...@@ -870,8 +870,8 @@ get_item_scalar = GetItemScalar()
class Transpose(gof.op.Op): class Transpose(gof.op.Op):
format_map = {'csr' : 'csc', format_map = {'csr': 'csc',
'csc' : 'csr'} 'csc': 'csr'}
def __eq__(self, other): def __eq__(self, other):
return (type(self) == type(other)) return (type(self) == type(other))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论