From 7d38355e4d86afc80d2f29fbb1781a46c5c6ccd2 Mon Sep 17 00:00:00 2001 From: Jean Maillard Date: Wed, 15 Jan 2020 11:32:51 -0800 Subject: [PATCH] Missing 'f' from f-string (#1229) Summary: Pull Request resolved: https://github.com/facebookresearch/pytext/pull/1229 F-string was missing `f`. Reviewed By: arbabu123 Differential Revision: D19377335 fbshipit-source-id: b779ae73ae370ca9e3be2eafd87a70c3e20b798f --- pytext/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytext/main.py b/pytext/main.py index a539a67f3..9013198c5 100644 --- a/pytext/main.py +++ b/pytext/main.py @@ -60,7 +60,7 @@ def train_model_distributed(config, metric_channels: Optional[List[Channel]]): or config.distributed_world_size <= torch.cuda.device_count() ), ( f"Only {torch.cuda.device_count()} GPUs are available, " - "{config.distributed_world_size} GPUs were requested" + f"{config.distributed_world_size} GPUs were requested" ) print(f"\n=== Starting training, World size is {config.distributed_world_size}")