提交 1023b228 authored 作者: Iban Harlouchet's avatar Iban Harlouchet

numpydoc for theano/scalar/sharedvar.py

上级 631ef396
"""A shared variable container for true scalars - for internal use. """
A shared variable container for true scalars - for internal use.
Why does this file exist? Why does this file exist?
------------------------- -------------------------
...@@ -37,9 +38,12 @@ class ScalarSharedVariable(_scalar_py_operators, SharedVariable): ...@@ -37,9 +38,12 @@ class ScalarSharedVariable(_scalar_py_operators, SharedVariable):
def shared(value, name=None, strict=False, allow_downcast=None): def shared(value, name=None, strict=False, allow_downcast=None):
"""SharedVariable constructor for scalar values. Default: int64 or float64. """
SharedVariable constructor for scalar values. Default: int64 or float64.
:note: We implement this using 0-d tensors for now. Notes
-----
We implement this using 0-d tensors for now.
""" """
if not isinstance(value, (numpy.number, float, int, complex)): if not isinstance(value, (numpy.number, float, int, complex)):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论