MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / wrapper

Function wrapper

python/paddle/jit/api.py:828–837  ·  view source on GitHub ↗
(
        layer: Layer | Callable[..., Any],
        path: str,
        input_spec: Sequence[InputSpec | Tensor | object] | None = None,
        **configs: Unpack[_SaveOptions],
    )

Source from the content-addressed store, hash-verified

826@wrap_decorator
827def _run_save_pre_hooks(func: _SaveFunction) -> _SaveFunction:
828 def wrapper(
829 layer: Layer | Callable[..., Any],
830 path: str,
831 input_spec: Sequence[InputSpec | Tensor | object] | None = None,
832 **configs: Unpack[_SaveOptions],
833 ) -> None:
834 global _save_pre_hooks
835 for hook in _save_pre_hooks:
836 hook(layer, input_spec, configs)
837 func(layer, path, input_spec, **configs)
838
839 return wrapper
840

Callers 8

deletedMethod · 0.50
set_deletedMethod · 0.50
markedMethod · 0.50
set_markedMethod · 0.50
set_subgraphMethod · 0.50
union_find_parentMethod · 0.50
set_union_find_parentMethod · 0.50
subgraphMethod · 0.50

Calls 2

hookFunction · 0.85
funcFunction · 0.50

Tested by

no test coverage detected