Documentation update

上级 9338e372
...@@ -119,8 +119,9 @@ def grad_sources_inputs(sources, graph_inputs): ...@@ -119,8 +119,9 @@ def grad_sources_inputs(sources, graph_inputs):
return gmap return gmap
def grad(cost, param, g_cost=1.0): def grad(cost, param, g_cost=1.0):
"""Return symbolic expression of gradient of <cost> wrt <param>. """
If <param> is a list, then return a list containing the gradient of cost wrt @return: symbolic expression of gradient of I{cost} wrt I{param}.
If I{param} is a list, then return a list containing the gradient of I{cost} wrt
each element of the list. each element of the list.
""" """
inputs = gof.graph.inputs([cost]) inputs = gof.graph.inputs([cost])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论