Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fluid Clean]Migrate if/while/return/break transformer into paddle.jit #48449

Merged
merged 9 commits into from
Nov 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/paddle/fluid/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ def patch_program_cache(ipu_strategy):
MAX_TRACED_PROGRAM_COUNT,
)
from ..fluid.dygraph.dygraph_to_static import logging_utils
from ..fluid.dygraph.dygraph_to_static.partial_program import (
from paddle.jit.dy2static.partial_program import (
partial_program_from,
)

Expand Down
9 changes: 0 additions & 9 deletions python/paddle/fluid/dygraph/dygraph_to_static/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,14 @@
from . import static_analysis
from .static_analysis import *

from . import loop_transformer
from .loop_transformer import *

from . import variable_trans_func
from .variable_trans_func import *

from . import convert_call_func
from .convert_call_func import *

from . import convert_operators

from . import logging_utils
from .logging_utils import *

__all__ = []
__all__ += loop_transformer.__all__
__all__ += static_analysis.__all__
__all__ += variable_trans_func.__all__
__all__ += convert_call_func.__all__
__all__ += logging_utils.__all__
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _no_need_convert_call(self, node):

func_str = ast_to_source_code(node.func).strip()
try:
from paddle.fluid.dygraph.dygraph_to_static.convert_call_func import (
from paddle.jit.dy2static.convert_call_func import (
is_builtin,
)

Expand Down
342 changes: 0 additions & 342 deletions python/paddle/fluid/dygraph/dygraph_to_static/convert_call_func.py

This file was deleted.

Loading