Fix typo under torch directory (#110824)

This PR fixes typo `the the` of comments and exception messages in files under `torch` directory.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/110824
Approved by: https://github.com/H-Huang
This commit is contained in:
Kazuaki Ishizaki
2023-10-09 19:16:39 +00:00
committed by PyTorch MergeBot
parent d1c157c598
commit b5f9696d81
20 changed files with 23 additions and 23 deletions

View File

@ -955,7 +955,7 @@ class DistributedTest:
with self.assertRaisesRegex(
RuntimeError,
"The new group's rank should be within the the world_size set by init_process_group",
"The new group's rank should be within the world_size set by init_process_group",
):
dist.new_subgroups_by_enumeration(
ranks_per_subgroup_list=[[0, 1], [world_size, 2]]
@ -971,7 +971,7 @@ class DistributedTest:
with self.assertRaisesRegex(
ValueError,
"The new group's rank should be within the the world_size set by init_process_group",
"The new group's rank should be within the world_size set by init_process_group",
):
dist.new_subgroups_by_enumeration(
ranks_per_subgroup_list=[[-1, -2], [-3, -4]]