From ab57cbf68f285872035d7e1e63daedd033c21204 Mon Sep 17 00:00:00 2001 From: xiongkun Date: Mon, 11 Jul 2022 18:54:54 +0800 Subject: [PATCH] [ DocFix ] fix the doc of `def cond` (#44157) * fix the doc of * fix the doc --- python/paddle/fluid/layers/control_flow.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/paddle/fluid/layers/control_flow.py b/python/paddle/fluid/layers/control_flow.py index 87010bc616..bc1a2c15dd 100755 --- a/python/paddle/fluid/layers/control_flow.py +++ b/python/paddle/fluid/layers/control_flow.py @@ -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 -- GitLab