From cfa086bdc12d2e6663525e0a924806474632fe35 Mon Sep 17 00:00:00 2001 From: pangyoki Date: Thu, 13 Aug 2020 03:10:10 -0500 Subject: [PATCH] Remove original name for alias APIs (#26195) * fixed static module * solve conflict * remove original name for alias API --- python/paddle/__init__.py | 4 ---- python/paddle/framework/__init__.py | 2 -- python/paddle/jit/__init__.py | 1 - 3 files changed, 7 deletions(-) diff --git a/python/paddle/__init__.py b/python/paddle/__init__.py index b125b36c6b6..14824407284 100644 --- a/python/paddle/__init__.py +++ b/python/paddle/__init__.py @@ -210,8 +210,6 @@ from .framework import BackwardStrategy #DEFINE_ALIAS from .framework import to_variable #DEFINE_ALIAS from .framework import grad #DEFINE_ALIAS from .framework import no_grad #DEFINE_ALIAS -from .framework import save_dygraph #DEFINE_ALIAS -from .framework import load_dygraph #DEFINE_ALIAS from .framework import save #DEFINE_ALIAS from .framework import load #DEFINE_ALIAS from .framework import prepare_context #DEFINE_ALIAS @@ -238,8 +236,6 @@ from .fluid.data import data from . import incubate from .incubate import hapi -from .fluid.dygraph.base import enable_dygraph #DEFINE_ALIAS -from .fluid.dygraph.base import disable_dygraph #DEFINE_ALIAS from .fluid.dygraph.base import enable_dygraph as disable_static #DEFINE_ALIAS from .fluid.dygraph.base import disable_dygraph as enable_static #DEFINE_ALIAS from .fluid.framework import in_dygraph_mode as in_dynamic_mode #DEFINE_ALIAS diff --git a/python/paddle/framework/__init__.py b/python/paddle/framework/__init__.py index 0c26e4c5178..20f1b453a0c 100644 --- a/python/paddle/framework/__init__.py +++ b/python/paddle/framework/__init__.py @@ -43,8 +43,6 @@ from paddle.fluid import core #DEFINE_ALIAS from ..fluid.dygraph.base import no_grad #DEFINE_ALIAS from ..fluid.dygraph.base import to_variable #DEFINE_ALIAS from ..fluid.dygraph.base import grad #DEFINE_ALIAS -from ..fluid.dygraph.checkpoint import load_dygraph #DEFINE_ALIAS -from ..fluid.dygraph.checkpoint import save_dygraph #DEFINE_ALIAS from ..fluid.dygraph.checkpoint import load_dygraph as load #DEFINE_ALIAS from ..fluid.dygraph.checkpoint import save_dygraph as save #DEFINE_ALIAS from ..fluid.dygraph.parallel import prepare_context #DEFINE_ALIAS diff --git a/python/paddle/jit/__init__.py b/python/paddle/jit/__init__.py index f098dc591cc..47369e3ff9c 100644 --- a/python/paddle/jit/__init__.py +++ b/python/paddle/jit/__init__.py @@ -16,7 +16,6 @@ from ..fluid.dygraph.jit import save #DEFINE_ALIAS from ..fluid.dygraph.jit import load #DEFINE_ALIAS from ..fluid.dygraph.jit import SaveLoadConfig #DEFINE_ALIAS from ..fluid.dygraph.jit import TracedLayer #DEFINE_ALIAS -from ..fluid.dygraph.jit import declarative as __impl__ #DEFINE_ALIAS from ..fluid.dygraph.jit import declarative as to_static #DEFINE_ALIAS from ..fluid.dygraph import ProgramTranslator #DEFINE_ALIAS from ..fluid.dygraph.io import TranslatedLayer #DEFINE_ALIAS -- GitLab