diff --git a/python/paddle/nn/functional/__init__.py b/python/paddle/nn/functional/__init__.py index 163c249ab37457d7d4566553c71e3231f384a8b1..28c42e6105ad9d3c226b91dc9ce777c9aa7fe40d 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 61cb616ee24607c29dc0da3523c58ba93d49897c..7d2ed0cdcf83a4fc5fb78f65c09c5b26d6b1ac23 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