Fix typos (#13049)
* fix typos no functional change * Update hpo.py better fix for typo no functional change
This commit is contained in:
1 parent
892e8a8263
commit
2b7bcf664b
4 files changed
+4
-4
No files matched your search
@@ -136,7 +136,7 @@ class SmartDistributedSampler(distributed.DistributedSampler):
|
||||
g = torch.Generator()
|
||||
g.manual_seed(self.seed + self.epoch)
|
||||
|
||||
# determine the the eventual size (n) of self.indices (DDP indices)
|
||||
# determine the eventual size (n) of self.indices (DDP indices)
|
||||
n = int((len(self.dataset) - self.rank - 1) / self.num_replicas) + 1 # num_replicas == WORLD_SIZE
|
||||
idx = torch.randperm(n, generator=g)
|
||||
if not self.shuffle:
|
||||
|
||||
Reference in new issue
Block a user