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

fix docstring style

上级 12ee12f4
...@@ -560,29 +560,34 @@ class Function(object): ...@@ -560,29 +560,34 @@ class Function(object):
Copy this function. Copied function will have separated maker and Copy this function. Copied function will have separated maker and
fgraph with original function. User can choose whether to separate fgraph with original function. User can choose whether to separate
storage by changing the share_memory arguments. storage by changing the share_memory arguments.
---------------------
Params: Parameters
share_memory -- { boolean } Default is False. When True, two ----------
function share intermediate storages(storages except input and share_memory : boolean
When True, two function share intermediate storages(storages except input and
output storages). Otherwise two functions will only share partial output storages). Otherwise two functions will only share partial
storages and same maker. If two functions share memory and storages and same maker. If two functions share memory and
allow_gc=False, this will increase executing speed and save memory. allow_gc=False, this will increase executing speed and save memory.
swap -- { dict } Dictionary that map old SharedVariables to new swap : dict
Dictionary that map old SharedVariables to new
SharedVariables. Default is None. SharedVariables. Default is None.
NOTE: The shared variable swap in only done in the new returned NOTE: The shared variable swap in only done in the new returned
function, not in the user graph. function, not in the user graph.
delete_updates -- { boolean } Default is False. If True, Copied delete_updates : boolean
function will not have update. If True, Copied function will not have updates.
name -- { string } If provided, will be the name of the new name : string
If provided, will be the name of the new
Function. Otherwise, it will be old + " copy" Function. Otherwise, it will be old + " copy"
profile -- as theano.function profile parameter profile :
--------------------- as theano.function profile parameter
Returns:
func -- Copied theano.Function Returns
-------
Copied theano.Function
""" """
# helper function # helper function
def checkSV(sv_ori, sv_rpl): def checkSV(sv_ori, sv_rpl):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论