diff --git a/python/paddle/fluid/layers/loss.py b/python/paddle/fluid/layers/loss.py index 9aaa6afd7e4e93d025b699e95b91a46a8003e037..c0d158f7a77b24274e5b4c0a7e63090a14db038c 100644 --- a/python/paddle/fluid/layers/loss.py +++ b/python/paddle/fluid/layers/loss.py @@ -23,7 +23,8 @@ from ..framework import Variable, in_dygraph_mode from .. import core from ..data_feeder import check_type_and_dtype from ..param_attr import ParamAttr -from ..initializer import NumpyArrayInitializer +from ..initializer import NumpyArrayInitializer, Constant +from .. import core __all__ = [ 'center_loss',