From f0df90269a86657bb9d65b14ae612919cef68db9 Mon Sep 17 00:00:00 2001 From: hong <43953930+phlrain@users.noreply.github.com> Date: Wed, 13 May 2020 17:03:15 +0800 Subject: [PATCH] add enable_imperative, disable_imperative alis; test=develop (#24392) --- python/paddle/fluid/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/paddle/fluid/__init__.py b/python/paddle/fluid/__init__.py index 1be99cb4a70..e136804f8a1 100644 --- a/python/paddle/fluid/__init__.py +++ b/python/paddle/fluid/__init__.py @@ -89,6 +89,8 @@ from .io import save, load, load_program_state, set_program_state from .dygraph.checkpoint import save_dygraph, load_dygraph from .dygraph.varbase_patch_methods import monkey_patch_varbase Tensor = LoDTensor +enable_imperative = enable_dygraph +disable_imperative = disable_dygraph __all__ = framework.__all__ + executor.__all__ + \ trainer_desc.__all__ + transpiler.__all__ + \ @@ -104,6 +106,8 @@ __all__ = framework.__all__ + executor.__all__ + \ 'dygraph', 'enable_dygraph', 'disable_dygraph', + 'enable_imperative', + 'disable_imperative', 'transpiler', 'nets', 'optimizer', -- GitLab