Skip to content

Commit

Permalink
add a wrap_decorator decorator to keep the __doc__ attr (PaddlePaddle…
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo authored and Caozhou1995 committed Sep 8, 2022
1 parent e3beb80 commit a865fef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/paddle/fluid/dygraph/jit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a865fef

Please sign in to comment.