diff --git a/python/paddle/fluid/framework.py b/python/paddle/fluid/framework.py index 3d88a1377a056d933b2152d569008c6af2f45809..df4691d49e8916e6ff27e08168f9c6579cd06732 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