diff --git a/python/paddle/jit/__init__.py b/python/paddle/jit/__init__.py index af4aad939acbe5e6d71d49a3f550eb30548fab1b..35d1be0aaf7da008affde9b1c0b67e664311253d 100644 --- a/python/paddle/jit/__init__.py +++ b/python/paddle/jit/__init__.py @@ -15,11 +15,10 @@ from .api import save from .api import load -from .api import set_code_level -from .api import set_verbosity from .api import declarative as to_static from .api import not_to_static from .api import TranslatedLayer +from .dy2static.logging_utils import set_code_level, set_verbosity from . import dy2static from .dy2static.program_translator import ProgramTranslator diff --git a/python/paddle/jit/api.py b/python/paddle/jit/api.py index 4cadf127f37382c16bc3c47485b4513df7472cee..fff8e37e60d5f6862e3d6c425d28172919c6960d 100644 --- a/python/paddle/jit/api.py +++ b/python/paddle/jit/api.py @@ -42,10 +42,6 @@ from .dy2static.convert_call_func import ( ConversionOptions, CONVERSION_OPTIONS, ) -from .dy2static.logging_utils import ( - set_code_level, - set_verbosity, -) from .dy2static.program_translator import ( ProgramTranslator, StaticFunction, @@ -76,14 +72,7 @@ from paddle.fluid.framework import ( from paddle.fluid.framework import dygraph_only, _non_static_mode from paddle.fluid.wrapped_decorator import wrap_decorator -__all__ = [ - 'declarative', - 'set_code_level', - 'set_verbosity', - 'save', - 'load', - 'not_to_static', -] +__all__ = [] def create_program_from_desc(program_desc): diff --git a/python/paddle/jit/dy2static/ifelse_transformer.py b/python/paddle/jit/dy2static/ifelse_transformer.py index 19d856310bb75ca496dcb5106e87282ac6db6144..d6744bc65c6128888f681974b41e4a482acc365e 100644 --- a/python/paddle/jit/dy2static/ifelse_transformer.py +++ b/python/paddle/jit/dy2static/ifelse_transformer.py @@ -44,7 +44,7 @@ from paddle.utils import gast from .base_transformer import BaseTransformer -__all__ = ['IfElseTransformer'] +__all__ = [] TRUE_FUNC_PREFIX = 'true_fn' FALSE_FUNC_PREFIX = 'false_fn' diff --git a/python/paddle/static/__init__.py b/python/paddle/static/__init__.py index bdb88e7290b57094e3b72a2da0d27aed049b75df..292a1da1197a8ee4e4ee31e6f61cfa475acf86a0 100644 --- a/python/paddle/static/__init__.py +++ b/python/paddle/static/__init__.py @@ -74,13 +74,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.metric import auc # noqa: F401 from .nn.metric import accuracy # noqa: F401 __all__ = [ # noqa 'append_backward', - 'batch_norm', 'gradients', 'Executor', 'global_scope',