diff --git a/python/paddle/fluid/dygraph/jit.py b/python/paddle/fluid/dygraph/jit.py index f96cbb82a7359..856a21881c233 100644 --- a/python/paddle/fluid/dygraph/jit.py +++ b/python/paddle/fluid/dygraph/jit.py @@ -634,6 +634,7 @@ def _remove_save_pre_hook(hook): _save_pre_hooks_lock.release() +@wrap_decorator def _run_save_pre_hooks(func): def wrapper(layer, path, input_spec=None, **configs):