From b2e7b265544771fdc65558160718608c6cd14260 Mon Sep 17 00:00:00 2001 From: Yang Zhang Date: Mon, 28 Sep 2020 10:33:23 +0800 Subject: [PATCH] Remove alias for `l2_normalize` functionality provided by `normalize` --- python/paddle/nn/functional/__init__.py | 1 - python/paddle/nn/functional/norm.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/python/paddle/nn/functional/__init__.py b/python/paddle/nn/functional/__init__.py index 163c249ab37..7ceb2af45cc 100644 --- a/python/paddle/nn/functional/__init__.py +++ b/python/paddle/nn/functional/__init__.py @@ -164,7 +164,6 @@ from .loss import teacher_student_sigmoid_loss #DEFINE_ALIAS from .loss import ctc_loss #DEFINE_ALIAS # from .norm import data_norm #DEFINE_ALIAS # from .norm import group_norm #DEFINE_ALIAS -from .norm import l2_normalize #DEFINE_ALIAS from .norm import batch_norm #DEFINE_ALIAS from .norm import instance_norm #DEFINE_ALIAS from .norm import layer_norm #DEFINE_ALIAS diff --git a/python/paddle/nn/functional/norm.py b/python/paddle/nn/functional/norm.py index 9e8f365f6d2..75d1b549b08 100644 --- a/python/paddle/nn/functional/norm.py +++ b/python/paddle/nn/functional/norm.py @@ -19,7 +19,6 @@ from ...fluid.data_feeder import check_variable_and_dtype, check_type from ...fluid.layer_helper import LayerHelper from ...fluid.framework import in_dygraph_mode, core from ...framework import create_parameter -from ...fluid.layers import l2_normalize #DEFINE_ALIAS from ...fluid.layers import lrn #DEFINE_ALIAS from ...fluid.initializer import Constant from ...fluid.param_attr import ParamAttr @@ -29,7 +28,6 @@ __all__ = [ 'batch_norm', # 'data_norm', 'instance_norm', - 'l2_normalize', 'layer_norm', 'lrn', 'normalize', -- GitLab