提交 ac136c79 authored 作者: James Bergstra's avatar James Bergstra

reformatting docstring to approach style spec

上级 610952f2
...@@ -138,7 +138,9 @@ class SharedVariable(Variable): ...@@ -138,7 +138,9 @@ class SharedVariable(Variable):
def filter_update(self, update): def filter_update(self, update):
"""When this shared variable is updated by a pfunc, the update value will be run through this function. """
When this shared variable is updated by a pfunc, the update value will be run through this function.
This is a good spot to cast or convert the update expression as necessary. This is a good spot to cast or convert the update expression as necessary.
Default behaviour is to return `update` unmodified if it is a Variable, otherwise to create a SharedVariable for it by calling ``shared(update)``. Default behaviour is to return `update` unmodified if it is a Variable, otherwise to create a SharedVariable for it by calling ``shared(update)``.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论