Skip to content

Commit f32aa6c

Browse files
committed
[API-Compat] Erroneous rebase fixed.
1 parent 06ddc46 commit f32aa6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/paddle/utils/decorator_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ class SizeArgsDecorator(DecoratorBase):
107107
def process(
108108
self, args: tuple[Any, ...], kwargs: dict[str, Any]
109109
) -> tuple[tuple[Any, ...], dict[str, Any]]:
110+
if 'size' in kwargs:
110111
kwargs['shape'] = kwargs.pop('size')
111112
elif len(args) >= 1 and isinstance(args[0], int):
112113
kwargs['shape'] = list(args)

0 commit comments

Comments
 (0)