提交 0f2d0a56 authored 作者: Iban Harlouchet's avatar Iban Harlouchet

Added commas to one-element tuples

上级 20d3ed4d
......@@ -12,7 +12,7 @@ tensor = basic
class CumsumOp(theano.Op):
# See function cumsum for docstring
__props__ = ("axis")
__props__ = ("axis",)
def __init__(self, axis=None):
self.axis = axis
......@@ -129,7 +129,7 @@ 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
......@@ -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,7 +511,7 @@ 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
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论