提交 04de009f authored 作者: Frederic Bastien's avatar Frederic Bastien

Tell in scan doc that it use the Updates that is a subclass of dictionary.

上级 1811c45e
...@@ -302,10 +302,13 @@ def scan( fn ...@@ -302,10 +302,13 @@ def scan( fn
:return: tuple of the form (outputs, updates); ``outputs`` is either a :return: tuple of the form (outputs, updates); ``outputs`` is either a
Theano variable or a list of Theano variables representing the Theano variable or a list of Theano variables representing the
outputs of ``scan`` (in the same order as in outputs of ``scan`` (in the same order as in
``outputs_info``). ``updates`` is a dictionary specifying the ``outputs_info``). ``updates`` is a subclass of dictionary
specifying the
update rules for all shared variables used in scan update rules for all shared variables used in scan
This dictionary should be passed to ``theano.function`` when This dictionary should be passed to ``theano.function`` when
you compile your function. you compile your function. The change compared to a normal
dictionary is that we validate that keys are SharedVariable
and addition of those dictionary are validated to be consistent.
""" """
# General observation : this code is executed only once, at creation # General observation : this code is executed only once, at creation
# of the computational graph, so we don't yet need to be smart about # of the computational graph, so we don't yet need to be smart about
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论