提交 e9a64bcc authored 作者: Frederic's avatar Frederic

code style fix

上级 57934665
......@@ -60,15 +60,14 @@ class ScalarSharedVariable(_tensor_py_operators, SharedVariable):
@shared_constructor
def scalar_constructor(value, name=None, strict=False, allow_downcast=None,
borrow=False, ):
borrow=False):
"""SharedVariable constructor for scalar values. Default: int64 or float64.
:note: We implement this using 0-d tensors for now.
:note: We ignore the borrow parameter as we convert value to an
ndarray (this is a new object). This respect the semantic of
borrow, as it is an hint to Theano that we can reuse it, this
isn't mandatory.
:note: We ignore the borrow parameter as we convert ``value`` to an
ndarray (this is a new object). This respects the semantic of
borrow, as it is a hint to Theano that we can reuse it.
"""
if not isinstance(value, (numpy.number, float, int, complex)):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论