From e4ba06c70fa84c92d9f869f0bcc3be591e7e274a Mon Sep 17 00:00:00 2001 From: Kaushik B <45285388+kaushikb11@users.noreply.github.com> Date: Wed, 2 Jun 2021 11:13:24 +0530 Subject: [PATCH] Replace deprecated distributed_backend by acc in examples (#7795) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- docs/source/ecosystem/asr_nlp_tts.rst | 4 ++-- notebooks/08-Domain-specific-demos.ipynb | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/source/ecosystem/asr_nlp_tts.rst b/docs/source/ecosystem/asr_nlp_tts.rst index e1a94eda9e..6b5840d32c 100644 --- a/docs/source/ecosystem/asr_nlp_tts.rst +++ b/docs/source/ecosystem/asr_nlp_tts.rst @@ -160,7 +160,7 @@ for the entire speech to text .yaml file. max_epochs: 5 max_steps: null # computed at runtime if not set num_nodes: 1 - distributed_backend: ddp + accelerator: ddp ... # configure the ASR model model: @@ -598,7 +598,7 @@ Specify TTS Model Configurations with YAML File gpus: -1 # number of gpus max_epochs: 350 num_nodes: 1 - distributed_backend: ddp + accelerator: ddp ... # configure the TTS model diff --git a/notebooks/08-Domain-specific-demos.ipynb b/notebooks/08-Domain-specific-demos.ipynb index a7b6a0dcc9..705479f681 100644 --- a/notebooks/08-Domain-specific-demos.ipynb +++ b/notebooks/08-Domain-specific-demos.ipynb @@ -1669,9 +1669,8 @@ "\n", " trainer = pl.Trainer(\n", " gpus=1,\n", - " distributed_backend='dp',\n", + " accelerator='dp',\n", " max_epochs=500,\n", - " early_stop_callback=False,\n", " val_check_interval=100\n", " )\n", "\n",