diff --git a/python/paddle/jit/translated_layer.py b/python/paddle/jit/translated_layer.py index 166c43143406c8a2192efed1ddc1efd9ce0ccf23..9cd30545af8450343981aeb020f451b6c2f235bb 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 631d17eb548b067f6cfbbe14ee6622d1655ad1d5..c9f1ec4970425b180dc2b7d28b96fe0f61cb6029 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',