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

flake8 for theano/tensor/extra_ops.py

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