Skip to content

Commit 5dbe60a

Browse files
committed
[API-Compat] Revert Erroneous rebase
1 parent ed1c996 commit 5dbe60a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/paddle/utils/decorator_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ class SizeArgsDecorator(DecoratorBase):
104104
paddle.ones([1, 2, 3], paddle.float32)
105105
paddle.ones(shape=[1, 2, 3], dtype=paddle.float32)
106106
"""
107+
107108
def process(
108109
self, args: tuple[Any, ...], kwargs: dict[str, Any]
109110
) -> tuple[tuple[Any, ...], dict[str, Any]]:
@@ -115,6 +116,7 @@ def process(
115116

116117
return args, kwargs
117118

119+
118120
class ForbidKeywordsDecorator(DecoratorBase):
119121
"""A decorator that hints users to use the correct `compat` functions, when erroneous keyword arguments are detected"""
120122

0 commit comments

Comments
 (0)