From 80fe8cbc38bdfd43797723167b44a3d64bfaddbc Mon Sep 17 00:00:00 2001 From: JYChen Date: Thu, 22 Dec 2022 15:42:50 +0800 Subject: [PATCH] remove 3 non-public apis (#49248) --- python/paddle/jit/translated_layer.py | 2 +- python/paddle/static/__init__.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/python/paddle/jit/translated_layer.py b/python/paddle/jit/translated_layer.py index 166c431434..9cd30545af 100644 --- a/python/paddle/jit/translated_layer.py +++ b/python/paddle/jit/translated_layer.py @@ -33,7 +33,7 @@ from paddle.jit.dy2static.partial_program import ( add_build_strategy_for, ) -__all__ = ['TranslatedLayer'] +__all__ = [] INFER_MODEL_SUFFIX = ".pdmodel" INFER_PARAMS_SUFFIX = ".pdiparams" diff --git a/python/paddle/static/__init__.py b/python/paddle/static/__init__.py index 631d17eb54..c9f1ec4970 100644 --- a/python/paddle/static/__init__.py +++ b/python/paddle/static/__init__.py @@ -73,15 +73,11 @@ from ..fluid.io import batch # noqa: F401 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 .nn.common import conv2d # noqa: F401 from .nn.metric import auc # noqa: F401 from .nn.metric import accuracy # noqa: F401 __all__ = [ # noqa 'append_backward', - 'batch_norm', - 'conv2d', 'gradients', 'Executor', 'global_scope', -- GitLab