未验证 提交 e66dbc38 编写于 作者: R Roc 提交者: GitHub

rm accuracy and auc in extra __all__ (#48986)

上级 a78f0a16
...@@ -75,8 +75,8 @@ from ..fluid.contrib.layers import ctr_metric_bundle # noqa: F401 ...@@ -75,8 +75,8 @@ from ..fluid.contrib.layers import ctr_metric_bundle # noqa: F401
from ..fluid.layers import exponential_decay # noqa: F401 from ..fluid.layers import exponential_decay # noqa: F401
from .nn.common import batch_norm # noqa: F401 from .nn.common import batch_norm # noqa: F401
from paddle.static.nn.metric import auc # noqa: F401 from .nn.metric import auc # noqa: F401
from paddle.static.nn.metric import accuracy # noqa: F401 from .nn.metric import accuracy # noqa: F401
__all__ = [ # noqa __all__ = [ # noqa
'append_backward', 'append_backward',
......
...@@ -22,7 +22,7 @@ from paddle.fluid.initializer import Constant ...@@ -22,7 +22,7 @@ from paddle.fluid.initializer import Constant
from paddle.fluid.layer_helper import LayerHelper from paddle.fluid.layer_helper import LayerHelper
from paddle.fluid.layers import tensor from paddle.fluid.layers import tensor
__all__ = ['accuracy', 'auc'] __all__ = []
def accuracy(input, label, k=1, correct=None, total=None): def accuracy(input, label, k=1, correct=None, total=None):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册