diff --git a/python/paddle/fluid/dygraph/jit.py b/python/paddle/fluid/dygraph/jit.py index f96cbb82a735920af5b642bc121b6dee321f7344..856a21881c23388df97c7952c9ae90410a909012 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):