未验证 提交 ab57cbf6 编写于 作者: X xiongkun 提交者: GitHub

[ DocFix ] fix the doc of `def cond` (#44157)

* fix the doc of

* fix the doc
上级 f98b8dbc
......@@ -2454,10 +2454,13 @@ def cond(pred, true_fn=None, false_fn=None, name=None, return_names=None):
true. The default value is ``None`` .
false_fn(callable, optional): A callable to be performed if ``pred`` is
false. The default value is ``None`` .
return_names: A list of strings to represents the name of returned vars. useful to debug.
name(str, optional): The default value is ``None`` . Normally users
don't have to set this parameter. For more information, please
refer to :ref:`api_guide_Name` .
return_names(sequence of string, optional): The default value is ``None`` .
Normally users don't have to set this parameters. A sequence of strings
to represents the name of returned vars. The structure of sequence must
be same with return values of true_fn and false_fn.
Returns:
Tensor|list(Tensor)|tuple(Tensor): returns ``true_fn()`` if the
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册