Skip to content

Commit 4d0ebfc

Browse files
authored
Update decorator_utils.py
1 parent c391297 commit 4d0ebfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/paddle/utils/decorator_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __call__(self, func: _F) -> _F:
3636

3737
@functools.wraps(func)
3838
def wrapper(*args, **kwargs):
39-
# 预处理参数
39+
# Pretreatment parameters
4040
processed_args, processed_kwargs = self.process(args, kwargs)
4141
# Call the original function
4242
return func(*processed_args, **processed_kwargs)
@@ -60,7 +60,7 @@ def process(
6060
raise NotImplementedError("Subclasses must implement this method")
6161

6262

63-
# 示例实现:参数别名装饰器
63+
# Example implementation: Parameter alias decorator
6464
class ParamAliasDecorator(DecoratorBase):
6565
"""Implementation of Decorator for Parameter Alias Processing"""
6666

0 commit comments

Comments
 (0)