From f03e0e49a8285279e9e5ed34d9ca821ec60611e8 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Fri, 12 Oct 2018 15:00:38 +0800 Subject: [PATCH] Polish doc test=develop --- python/paddle/fluid/layers/nn.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 234692cb2..a3cae9385 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -5840,13 +5840,13 @@ def margin_rank_loss(label, left, right, margin=0.1, name=None): Args: label (Variable): Indicates whether the left is ranked higher than the right or not. - left (Variable): ranking score for left. - right (Variable): ranking score for right. + left (Variable): Ranking score for left. + right (Variable): Ranking score for right. margin (float): Indicates the given margin to be added to right name (str|None): A name for this layer (optional). If set None, the layer will be named automatically. Returns: - list: The Variable of ranking loss. + Variable: The ranking loss. Raises: ValueError: Any of label, left, and right is not a Variable. Examples: -- GitLab