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

Method wrapper

python/paddle/utils/decorator_utils.py:56–59  ·  view source on GitHub ↗
(*args: _InputT.args, **kwargs: _InputT.kwargs)

Source from the content-addressed store, hash-verified

54
55 @functools.wraps(func)
56 def wrapper(*args: _InputT.args, **kwargs: _InputT.kwargs) -> _RetT:
57 # Pretreatment parameters
58 processed_args, processed_kwargs = self.process(args, kwargs)
59 return func(*processed_args, **processed_kwargs)
60
61 wrapper.__signature__ = inspect.signature(func)
62 return cast("Callable[_InputT, _RetT]", wrapper)

Callers

nothing calls this directly

Calls 2

processMethod · 0.95
funcFunction · 0.50

Tested by

no test coverage detected