test=develop
revert-23830-2.0-beta
songyouwei 5 years ago committed by GitHub
parent b8886bf122
commit 2787041246
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -105,8 +105,9 @@ def enable_dygraph(place=None):
print(fluid.in_dygraph_mode()) # False
"""
global _functional_dygraph_context_manager
_functional_dygraph_context_manager = guard(place=place)
_functional_dygraph_context_manager.__enter__()
if _functional_dygraph_context_manager is None:
_functional_dygraph_context_manager = guard(place=place)
_functional_dygraph_context_manager.__enter__()
def disable_dygraph():

Loading…
Cancel
Save