From e66dbc381493d72f8fd61aa2c4769c81d1dc81a3 Mon Sep 17 00:00:00 2001 From: Roc <30228238+sljlp@users.noreply.github.com> Date: Mon, 12 Dec 2022 10:10:23 +0800 Subject: [PATCH] rm accuracy and auc in extra __all__ (#48986) --- python/paddle/static/__init__.py | 4 ++-- python/paddle/static/nn/metric.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/python/paddle/static/__init__.py b/python/paddle/static/__init__.py index 5413b5983cd19..bdb88e7290b57 100644 --- a/python/paddle/static/__init__.py +++ b/python/paddle/static/__init__.py @@ -75,8 +75,8 @@ 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 3ed54ddd2ccee..9b386c38c8e68 100644 --- a/python/paddle/static/nn/metric.py +++ b/python/paddle/static/nn/metric.py @@ -22,7 +22,7 @@ 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):