提交 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
output storages). Otherwise two functions will only share partial When True, two function share intermediate storages(storages except input and
storages and same maker. If two functions share memory and output storages). Otherwise two functions will only share partial
allow_gc=False, this will increase executing speed and save memory. storages and same maker. If two functions share memory and
allow_gc=False, this will increase executing speed and save memory.
swap -- { dict } Dictionary that map old SharedVariables to new
SharedVariables. Default is None. swap : dict
NOTE: The shared variable swap in only done in the new returned Dictionary that map old SharedVariables to new
function, not in the user graph. SharedVariables. Default is None.
NOTE: The shared variable swap in only done in the new returned
delete_updates -- { boolean } Default is False. If True, Copied function, not in the user graph.
function will not have update.
delete_updates : boolean
name -- { string } If provided, will be the name of the new If True, Copied function will not have updates.
Function. Otherwise, it will be old + " copy"
name : string
profile -- as theano.function profile parameter If provided, will be the name of the new
--------------------- Function. Otherwise, it will be old + " copy"
Returns:
func -- Copied theano.Function profile :
as theano.function profile parameter
Returns
-------
Copied theano.Function
""" """
# helper function # helper function
def checkSV(sv_ori, sv_rpl): def checkSV(sv_ori, sv_rpl):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论