Skip to content

Commit

Permalink
rm accuracy and auc in extra __all__ (#48986)
Browse files Browse the repository at this point in the history
  • Loading branch information
sljlp authored Dec 12, 2022
1 parent a78f0a1 commit e66dbc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python/paddle/static/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion python/paddle/static/nn/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit e66dbc3

Please sign in to comment.