提交 96603aef authored 作者: Frederic Bastien's avatar Frederic Bastien

Added function documentation.

上级 b55d3697
...@@ -66,7 +66,7 @@ class SharedVariable(Variable): ...@@ -66,7 +66,7 @@ class SharedVariable(Variable):
:param container: The container to use for this variable. Illegal to pass this as well :param container: The container to use for this variable. Illegal to pass this as well
as a value. as a value.
For more user-friendly constructor, see `shared` :note: For more user-friendly constructor, see `shared`
""" """
super(SharedVariable, self).__init__(type=type, name=name, owner=None, index=None) super(SharedVariable, self).__init__(type=type, name=name, owner=None, index=None)
...@@ -186,6 +186,8 @@ def shared(value, name=None, strict=False, allow_downcast=None, **kwargs): ...@@ -186,6 +186,8 @@ def shared(value, name=None, strict=False, allow_downcast=None, **kwargs):
:note: :note:
By passing kwargs, you effectively limit the set of potential constructors to those that By passing kwargs, you effectively limit the set of potential constructors to those that
can accept those kwargs. can accept those kwargs.
:note: Some shared variable have 'borrow' as extra kwargs.
`See <http://deeplearning.net/software/theano/tutorial/aliasing.html#borrowing-when-creating-shared-variables>`_ for detail.
""" """
for ctor in reversed(shared.constructors): for ctor in reversed(shared.constructors):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论