提交 24d214fb authored 作者: Iban Harlouchet's avatar Iban Harlouchet

numpydoc for theano/gof/null_type.py

上级 ba7a952a
...@@ -3,19 +3,21 @@ from theano.gof.type import Type ...@@ -3,19 +3,21 @@ from theano.gof.type import Type
class NullType(Type): class NullType(Type):
""" """
A type that allows no values.
A type that allows no values. Used to represent expressions Used to represent expressions
that are undefined, either because they do not exist mathematically that are undefined, either because they do not exist mathematically
or because the code to generate the expression has not been or because the code to generate the expression has not been
implemented yet. implemented yet.
Parameters
----------
why_null : str
A string explaining why this variable can't take on any values.
""" """
def __init__(self, why_null='(no explanation given)'): def __init__(self, why_null='(no explanation given)'):
"""
why_null: A string explaining why this variable
can't take on any values
"""
self.why_null = why_null self.why_null = why_null
def filter(self, data, strict=False, allow_downcast=None): def filter(self, data, strict=False, allow_downcast=None):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论