* fix typos

no functional change

* Update hpo.py

better fix for typo

no functional change
This commit is contained in:
RainRat authored and GitHub committed 2024-05-29 22:09:30 +02:00
1 parent 892e8a8263
commit 2b7bcf664b
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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: