diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 234692cb29593516e87c4af9943a5d567d4805f5..a3cae9385c7d1481d6a75213553447d40ade0cbc 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: