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

Method process

python/paddle/utils/decorator_utils.py:311–320  ·  view source on GitHub ↗
(
        self, args: tuple[Any, ...], kwargs: dict[str, Any]
    )

Source from the content-addressed store, hash-verified

309 """
310
311 def process(
312 self, args: tuple[Any, ...], kwargs: dict[str, Any]
313 ) -> tuple[tuple[Any, ...], dict[str, Any]]:
314 if 'size' in kwargs:
315 kwargs['shape'] = kwargs.pop('size')
316 elif len(args) >= 1 and isinstance(args[0], int):
317 kwargs['shape'] = list(args)
318 args = ()
319
320 return args, kwargs
321
322
323def size_args_decorator(

Callers

nothing calls this directly

Calls 2

listFunction · 0.85
popMethod · 0.45

Tested by

no test coverage detected