Skip to content

Commit

Permalink
rm accuracy and auc in extra __all__
Browse files Browse the repository at this point in the history
  • Loading branch information
sljlp committed Dec 10, 2022
1 parent c40122d commit 3f47a7d
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 3f47a7d

Please sign in to comment.