From de60c54938d9b946fa7a9bad835011624603643b Mon Sep 17 00:00:00 2001 From: huangjun12 <2399845970@qq.com> Date: Thu, 8 Oct 2020 11:03:51 +0800 Subject: [PATCH] fix doc and example code of huber_loss and npair_loss (#27678) * fix huber_loss ans npair_loss doc and example code, test=document_fix * remove disable_static in example code, test=document_fix * remove huber_loss and refine npair_loss example code, test=document_fix * remove huber_loss in functional/__init__.py, test=document_fix --- python/paddle/fluid/layers/loss.py | 31 +++++++++++-------------- python/paddle/nn/functional/__init__.py | 1 - python/paddle/nn/functional/loss.py | 2 -- 3 files changed, 14 insertions(+), 20 deletions(-) diff --git a/python/paddle/fluid/layers/loss.py b/python/paddle/fluid/layers/loss.py index 3610efdd505..2b1449a94e6 100644 --- a/python/paddle/fluid/layers/loss.py +++ b/python/paddle/fluid/layers/loss.py @@ -1681,11 +1681,6 @@ from .control_flow import equal def npair_loss(anchor, positive, labels, l2_reg=0.002): ''' - :alias_main: paddle.nn.functional.npair_loss - :alias: paddle.nn.functional.npair_loss,paddle.nn.functional.loss.npair_loss - :old_api: paddle.fluid.layers.npair_loss - - **Npair Loss Layer** Read `Improved Deep Metric Learning with Multi class N pair Loss Objective\