mirror of
https://github.com/vale981/ray
synced 2025-03-05 18:11:42 -05:00
[docs] Fix broken code example in docstring for DataParallelTrainer args
This commit is contained in:
parent
684e395c5d
commit
9381dd174e
1 changed files with 4 additions and 2 deletions
|
@ -196,7 +196,9 @@ class DataParallelTrainer(Trainer):
|
|||
def __init__(self, train_loop_per_worker, my_backend_config:
|
||||
MyBackendConfig, **kwargs):
|
||||
|
||||
super().__init__(train_loop_per_worker, my_backend_config, **kwargs)
|
||||
super().__init__(
|
||||
train_loop_per_worker,
|
||||
backend_config=my_backend_config, **kwargs)
|
||||
|
||||
Args:
|
||||
train_loop_per_worker: The training function to execute.
|
||||
|
@ -232,8 +234,8 @@ class DataParallelTrainer(Trainer):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
train_loop_per_worker: Union[Callable[[], None], Callable[[Dict], None]],
|
||||
*,
|
||||
train_loop_config: Optional[Dict] = None,
|
||||
backend_config: Optional[BackendConfig] = None,
|
||||
scaling_config: Optional[ScalingConfig] = None,
|
||||
|
|
Loading…
Add table
Reference in a new issue