From f652415ff642493eb2e9d6096bd7ed3e89bcffcb Mon Sep 17 00:00:00 2001 From: wanghaoshuang Date: Mon, 28 Sep 2020 02:42:49 +0000 Subject: [PATCH] Remove alias code --- python/paddle/nn/functional/__init__.py | 2 +- python/paddle/nn/functional/common.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/python/paddle/nn/functional/__init__.py b/python/paddle/nn/functional/__init__.py index 163c249ab37..28c42e6105a 100644 --- a/python/paddle/nn/functional/__init__.py +++ b/python/paddle/nn/functional/__init__.py @@ -62,7 +62,7 @@ from .common import dropout3d #DEFINE_ALIAS from .common import alpha_dropout #DEFINE_ALIAS # from .common import embedding #DEFINE_ALIAS # from .common import fc #DEFINE_ALIAS -from .common import label_smooth #DEFINE_ALIAS +from .common import label_smooth from .common import one_hot #DEFINE_ALIAS from .common import pad #DEFINE_ALIAS from .common import pad_constant_like #DEFINE_ALIAS diff --git a/python/paddle/nn/functional/common.py b/python/paddle/nn/functional/common.py index 61cb616ee24..7d2ed0cdcf8 100644 --- a/python/paddle/nn/functional/common.py +++ b/python/paddle/nn/functional/common.py @@ -20,7 +20,6 @@ from paddle.fluid.layers.tensor import Variable, fill_constant, zeros, concat from ...fluid.layers import core from ...fluid import dygraph_utils # TODO: define the common functions to build a neural network -from ...fluid.layers import label_smooth #DEFINE_ALIAS from ...fluid import one_hot #DEFINE_ALIAS from ...fluid.layers import pad2d #DEFINE_ALIAS from ...fluid.layers import unfold #DEFINE_ALIAS -- GitLab