From 7499f9613114b903866ef105489b79a41bf1b837 Mon Sep 17 00:00:00 2001 From: Weilong Wu Date: Fri, 1 Jul 2022 10:09:27 +0800 Subject: [PATCH] Switch eager mode to default dygraph mode (#43767) --- python/paddle/fluid/framework.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/framework.py b/python/paddle/fluid/framework.py index 3d88a1377a0..df4691d49e8 100644 --- a/python/paddle/fluid/framework.py +++ b/python/paddle/fluid/framework.py @@ -75,7 +75,7 @@ ZERO_VAR_SUFFIX = core.kZeroVarSuffix() CONTROL_DEP_VAR_PREFIX = core.kControlDepVarName() _dygraph_tracer_ = None -_in_eager_mode_ = (os.environ.get('FLAGS_enable_eager_mode') == '1') +_in_eager_mode_ = (os.environ.get('FLAGS_enable_eager_mode', '1') == '1') _global_expected_place_ = None _current_device = None global_prog_seed = 0 -- GitLab