Skip to content

Commit d926b30

Browse files
authored
[Fluid Clean]Migrate if/while/return/break transformer into paddle.jit (#48449)
* [Fluid Clean]Migrate if/while/return/break transformer into paddle.jit * migrate call_transformer * migrate call_transformer
1 parent f41ccbd commit d926b30

25 files changed

+1179
-1256
lines changed

python/paddle/fluid/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ def patch_program_cache(ipu_strategy):
697697
MAX_TRACED_PROGRAM_COUNT,
698698
)
699699
from ..fluid.dygraph.dygraph_to_static import logging_utils
700-
from ..fluid.dygraph.dygraph_to_static.partial_program import (
700+
from paddle.jit.dy2static.partial_program import (
701701
partial_program_from,
702702
)
703703

python/paddle/fluid/dygraph/dygraph_to_static/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,14 @@
1515
from . import static_analysis
1616
from .static_analysis import *
1717

18-
from . import loop_transformer
19-
from .loop_transformer import *
20-
2118
from . import variable_trans_func
2219
from .variable_trans_func import *
2320

24-
from . import convert_call_func
25-
from .convert_call_func import *
26-
27-
from . import convert_operators
2821

2922
from . import logging_utils
3023
from .logging_utils import *
3124

3225
__all__ = []
33-
__all__ += loop_transformer.__all__
3426
__all__ += static_analysis.__all__
3527
__all__ += variable_trans_func.__all__
36-
__all__ += convert_call_func.__all__
3728
__all__ += logging_utils.__all__

python/paddle/fluid/dygraph/dygraph_to_static/call_transformer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _no_need_convert_call(self, node):
5151

5252
func_str = ast_to_source_code(node.func).strip()
5353
try:
54-
from paddle.fluid.dygraph.dygraph_to_static.convert_call_func import (
54+
from paddle.jit.dy2static.convert_call_func import (
5555
is_builtin,
5656
)
5757

python/paddle/fluid/dygraph/dygraph_to_static/convert_call_func.py

Lines changed: 0 additions & 342 deletions
This file was deleted.

0 commit comments

Comments
 (0)