From d12aa4957fe1d58a9093c86ff7a70ba114f508ed Mon Sep 17 00:00:00 2001 From: wangguanzhong Date: Thu, 19 Nov 2020 23:16:31 +0800 Subject: [PATCH] remove alias for iou_similarity and ssd_loss (#28742) --- python/paddle/nn/functional/__init__.py | 2 -- python/paddle/nn/functional/loss.py | 4 ---- 2 files changed, 6 deletions(-) diff --git a/python/paddle/nn/functional/__init__.py b/python/paddle/nn/functional/__init__.py index 07e8b1f4d6..00a4034ead 100644 --- a/python/paddle/nn/functional/__init__.py +++ b/python/paddle/nn/functional/__init__.py @@ -131,7 +131,6 @@ from .loss import binary_cross_entropy_with_logits #DEFINE_ALIAS from .loss import cross_entropy #DEFINE_ALIAS from .loss import dice_loss #DEFINE_ALIAS from .loss import hsigmoid_loss #DEFINE_ALIAS -from .loss import iou_similarity #DEFINE_ALIAS from .loss import kl_div #DEFINE_ALIAS from .loss import l1_loss #DEFINE_ALIAS from .loss import log_loss #DEFINE_ALIAS @@ -145,7 +144,6 @@ from .loss import sigmoid_focal_loss #DEFINE_ALIAS from .loss import smooth_l1_loss #DEFINE_ALIAS from .loss import softmax_with_cross_entropy #DEFINE_ALIAS from .loss import square_error_cost #DEFINE_ALIAS -from .loss import ssd_loss #DEFINE_ALIAS # from .loss import teacher_student_sigmoid_loss #DEFINE_ALIAS from .loss import ctc_loss #DEFINE_ALIAS # from .norm import data_norm #DEFINE_ALIAS diff --git a/python/paddle/nn/functional/loss.py b/python/paddle/nn/functional/loss.py index fa0789b762..c701274dbd 100644 --- a/python/paddle/nn/functional/loss.py +++ b/python/paddle/nn/functional/loss.py @@ -24,13 +24,11 @@ import paddle.fluid as fluid from ...fluid.framework import core, in_dygraph_mode from ...fluid.layers.nn import _elementwise_op_in_dygraph from ...fluid.layers import dice_loss #DEFINE_ALIAS -from ...fluid.layers import iou_similarity #DEFINE_ALIAS from ...fluid.layers import log_loss #DEFINE_ALIAS from ...fluid.layers import npair_loss #DEFINE_ALIAS from ...fluid.layers import reshape from ...fluid.layers import softmax_with_cross_entropy #DEFINE_ALIAS from ...fluid.layers import square_error_cost #DEFINE_ALIAS -from ...fluid.layers import ssd_loss #DEFINE_ALIAS from ...fluid.layers import edit_distance #DEFINE_ALIAS from ...fluid.layers import sampled_softmax_with_cross_entropy #DEFINE_ALIAS @@ -46,7 +44,6 @@ __all__ = [ 'cross_entropy', 'dice_loss', 'hsigmoid_loss', - 'iou_similarity', 'kl_div', 'l1_loss', 'log_loss', @@ -59,7 +56,6 @@ __all__ = [ 'smooth_l1_loss', 'softmax_with_cross_entropy', 'square_error_cost', - 'ssd_loss', 'ctc_loss', ] -- GitLab