未验证 提交 f0df9026 编写于 作者: H hong 提交者: GitHub

add enable_imperative, disable_imperative alis; test=develop (#24392)

上级 479c47f3
......@@ -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',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册