提交 20d3ed4d authored 作者: Iban Harlouchet's avatar Iban Harlouchet

flake8 for theano/tensor/extra_ops.py

上级 6187e961
...@@ -12,7 +12,7 @@ tensor = basic ...@@ -12,7 +12,7 @@ tensor = basic
class CumsumOp(theano.Op): class CumsumOp(theano.Op):
# See function cumsum for docstring # See function cumsum for docstring
__props__=("axis") __props__ = ("axis")
def __init__(self, axis=None): def __init__(self, axis=None):
self.axis = axis self.axis = axis
...@@ -129,7 +129,7 @@ def cumsum(x, axis=None): ...@@ -129,7 +129,7 @@ def cumsum(x, axis=None):
class CumprodOp(theano.Op): class CumprodOp(theano.Op):
# See function cumprod for docstring # See function cumprod for docstring
__props__=("axis") __props__ = ("axis")
def __init__(self, axis=None): def __init__(self, axis=None):
self.axis = axis self.axis = axis
...@@ -248,7 +248,7 @@ def cumprod(x, axis=None): ...@@ -248,7 +248,7 @@ def cumprod(x, axis=None):
class DiffOp(theano.Op): class DiffOp(theano.Op):
# See function diff for docstring # See function diff for docstring
__props__=("n", "axis") __props__ = ("n", "axis")
def __init__(self, n=1, axis=-1): def __init__(self, n=1, axis=-1):
self.n = n self.n = n
...@@ -323,7 +323,7 @@ class BinCountOp(theano.Op): ...@@ -323,7 +323,7 @@ class BinCountOp(theano.Op):
compatible_type = ('int8', 'int16', 'int32', 'int64', compatible_type = ('int8', 'int16', 'int32', 'int64',
'uint8', 'uint16', 'uint32', 'uint64') 'uint8', 'uint16', 'uint32', 'uint64')
"""Tuple of all compatible dtype for the parameter of this op.""" """Tuple of all compatible dtype for the parameter of this op."""
__props__=("minlength") __props__ = ("minlength")
def __init__(self, minlength=None): def __init__(self, minlength=None):
self.minlength = minlength self.minlength = minlength
...@@ -511,7 +511,7 @@ def compress(condition, x, axis=None): ...@@ -511,7 +511,7 @@ def compress(condition, x, axis=None):
class RepeatOp(theano.Op): class RepeatOp(theano.Op):
# See the repeat function for docstring # See the repeat function for docstring
__props__=("axis") __props__ = ("axis")
def __init__(self, axis=None): def __init__(self, axis=None):
self.axis = axis self.axis = axis
...@@ -684,7 +684,7 @@ def repeat(x, repeats, axis=None): ...@@ -684,7 +684,7 @@ def repeat(x, repeats, axis=None):
class Bartlett(gof.Op): class Bartlett(gof.Op):
# See function bartlett for docstring # See function bartlett for docstring
__props__=() __props__ = ()
def __str__(self): def __str__(self):
return self.__class__.__name__ return self.__class__.__name__
...@@ -742,7 +742,7 @@ def bartlett(M): ...@@ -742,7 +742,7 @@ def bartlett(M):
class FillDiagonal(gof.Op): class FillDiagonal(gof.Op):
# See function fill_diagonal for docstring # See function fill_diagonal for docstring
__props__=() __props__ = ()
def __str__(self): def __str__(self):
return self.__class__.__name__ return self.__class__.__name__
...@@ -826,7 +826,7 @@ def fill_diagonal(a, val): ...@@ -826,7 +826,7 @@ def fill_diagonal(a, val):
class FillDiagonalOffset(gof.Op): class FillDiagonalOffset(gof.Op):
# See function fill_diagonal_offset for docstring # See function fill_diagonal_offset for docstring
__props__=() __props__ = ()
def __str__(self): def __str__(self):
return self.__class__.__name__ return self.__class__.__name__
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论