fix: 修复参数传递问题
This commit is contained in:
@@ -81,6 +81,7 @@ def only_on_rank(rank, sync=False):
|
||||
def decorator(func):
|
||||
@wraps(func)
|
||||
def wrapper(*args, **kwargs):
|
||||
ret_args = None
|
||||
if get_rank() == rank:
|
||||
ret_args = func(*args, **kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user