From c420f3d5b36563331a7bbdbd96907211b4effe7b Mon Sep 17 00:00:00 2001 From: andsonder Date: Mon, 7 Aug 2023 05:00:26 +0000 Subject: [PATCH 1/2] open --- python/paddle/distributed/auto_parallel/static/engine.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/paddle/distributed/auto_parallel/static/engine.py b/python/paddle/distributed/auto_parallel/static/engine.py index 84670977cd72ae..e20fd7c4e444d5 100644 --- a/python/paddle/distributed/auto_parallel/static/engine.py +++ b/python/paddle/distributed/auto_parallel/static/engine.py @@ -243,6 +243,7 @@ def __init__( self.history = None paddle.framework.set_flags({'FLAGS_new_executor_sequential_run': 1}) + paddle.framework.set_flags({'FLAGS_new_executor_static_build': True}) def _prepare_data_spec(self, data, split, batch_size): inputs_spec = [] From 7b885faaf94b2355df7f40000c4e35384a41a1ea Mon Sep 17 00:00:00 2001 From: andsonder Date: Mon, 7 Aug 2023 05:01:19 +0000 Subject: [PATCH 2/2] update --- python/paddle/distributed/auto_parallel/static/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/distributed/auto_parallel/static/engine.py b/python/paddle/distributed/auto_parallel/static/engine.py index e20fd7c4e444d5..853ff7d0aedbfe 100644 --- a/python/paddle/distributed/auto_parallel/static/engine.py +++ b/python/paddle/distributed/auto_parallel/static/engine.py @@ -243,7 +243,7 @@ def __init__( self.history = None paddle.framework.set_flags({'FLAGS_new_executor_sequential_run': 1}) - paddle.framework.set_flags({'FLAGS_new_executor_static_build': True}) + paddle.framework.set_flags({'FLAGS_new_executor_static_build': 1}) def _prepare_data_spec(self, data, split, batch_size): inputs_spec = []