We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c391297 commit 4d0ebfcCopy full SHA for 4d0ebfc
python/paddle/utils/decorator_utils.py
@@ -36,7 +36,7 @@ def __call__(self, func: _F) -> _F:
36
37
@functools.wraps(func)
38
def wrapper(*args, **kwargs):
39
- # 预处理参数
+ # Pretreatment parameters
40
processed_args, processed_kwargs = self.process(args, kwargs)
41
# Call the original function
42
return func(*processed_args, **processed_kwargs)
@@ -60,7 +60,7 @@ def process(
60
raise NotImplementedError("Subclasses must implement this method")
61
62
63
-# 示例实现:参数别名装饰器
+# Example implementation: Parameter alias decorator
64
class ParamAliasDecorator(DecoratorBase):
65
"""Implementation of Decorator for Parameter Alias Processing"""
66
0 commit comments