Created by: pangyoki
PR types
Others
PR changes
APIs
Describe
In the implementation of Paddle 2.0 directory migration(PR #25898), we both import the alias name and original name for alias APIs. For example, in paddle/_init_.py
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
Importing original name is unnecessary, however, the algorithm used to print all the specifications of APIs in print_signatures.py
use the original name. If we don't import original name, CI can't pass.
After solving the problem of print_signatures.py
in PR #26143, we can remove the unnecessary original name. This PR is used to remove the original name for alias APIs.