diff --git a/python/paddle/static/__init__.py b/python/paddle/static/__init__.py index 5413b5983cd19b0a812842b0ae60bb428a84f793..bdb88e7290b57094e3b72a2da0d27aed049b75df 100644 --- a/python/paddle/static/__init__.py +++ b/python/paddle/static/__init__.py @@ -75,8 +75,8 @@ from ..fluid.contrib.layers import ctr_metric_bundle # noqa: F401 from ..fluid.layers import exponential_decay # noqa: F401 from .nn.common import batch_norm # noqa: F401 -from paddle.static.nn.metric import auc # noqa: F401 -from paddle.static.nn.metric import accuracy # noqa: F401 +from .nn.metric import auc # noqa: F401 +from .nn.metric import accuracy # noqa: F401 __all__ = [ # noqa 'append_backward', diff --git a/python/paddle/static/nn/metric.py b/python/paddle/static/nn/metric.py index 3ed54ddd2cceee3491b4a879f8bea066d894d119..9b386c38c8e68ace683c3d148cf1c75db10af8b4 100644 --- a/python/paddle/static/nn/metric.py +++ b/python/paddle/static/nn/metric.py @@ -22,7 +22,7 @@ from paddle.fluid.initializer import Constant from paddle.fluid.layer_helper import LayerHelper from paddle.fluid.layers import tensor -__all__ = ['accuracy', 'auc'] +__all__ = [] def accuracy(input, label, k=1, correct=None, total=None):