Skip to content

Commit be2a579

Browse files
tangbinhfacebook-github-bot
authored andcommitted
Replace deprecated DDP accelerator with DDP strategy within stl/lightning
Summary: We proactively remove references to the deprecated DDP accelerator to prepare for the breaking changes following the release of PyTorch Lighting 1.6 (see T112240890). Differential Revision: D34295384 fbshipit-source-id: 055244f62727ac7a2d00272c06febf117de0e764
1 parent 4ea97be commit be2a579

File tree

1 file changed

+1
-1
lines changed
  • torchx/examples/apps/lightning_classy_vision

1 file changed

+1
-1
lines changed

torchx/examples/apps/lightning_classy_vision/train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def main(argv: List[str]) -> None:
142142
num_nodes=num_nodes,
143143
num_processes=num_processes,
144144
gpus=gpus,
145-
accelerator="ddp",
145+
strategy="ddp",
146146
logger=logger,
147147
max_epochs=args.epochs,
148148
callbacks=callbacks,

0 commit comments

Comments
 (0)