parameters: (self, epoch: int)
docstring: r"""
          Sets the epoch for this sampler. When :attr:`shuffle=True`, this ensures all replicas
          use a different random ordering for each epoch. Otherwise, the next iteration of this
          sampler will yield the same ordering.
  
          Args:
              epoch (int): Epoch number.
docstring_summary: r"""
          Sets the epoch for this sampler. When :attr:`shuffle=True`, this ensures all replicas
          use a different random ordering for each epoch. Otherwise, the next iteration of this
          sampler will yield the same ordering.
docstring_tokens: r Sets the epoch for this sampler . When : attr : shuffle = True this ensures all replicas use a different random ordering for each epoch . Otherwise the next iteration of this sampler will yield the same ordering .
function: def set_epoch(self, epoch: int) -> None:
          r"""
          Sets the epoch for this sampler. When :attr:`shuffle=True`, this ensures all replicas
          use a different random ordering for each epoch. Otherwise, the next iteration of this
          sampler will yield the same ordering.
  
          Args:
              epoch (int): Epoch number.
          """
          self.epoch = epoch
function_tokens: def set_epoch ( self , epoch : int ) -> None : self . epoch = epoch