class_docstr: A MultiprocessIterator having its shuffling property activated during training
docstr: Init the iterator
  
  :param torch.nn.Tensor dataset: The dataset to take batches from
  :param int batch_size: The batch size
  :param bool repeat: Whether to repeat batches or not (enables multiple epochs)
  :param bool shuffle: Whether to shuffle the order of the batches
  :param int n_processes: How many processes to use
  :param int n_prefetch: The number of prefetch to use
  :param int shared_mem: How many memory to share between processes
  :param int maxtasksperchild: Maximum number of tasks per child
docstr_tok: ["Init","the","iterator",":","param","torch.nn.Tensor","dataset",":","The","dataset","to","take","batches","from",":","param","int","batch_size",":","The","batch","size",":","param","bool","repeat",":","Whether","to","repeat","batches","or","not","(","enables","multiple","epochs",")",":","param","bool","shuffle",":","Whether","to","shuffle","the","order","of","the","batches",":","param","int","n_processes",":","How","many","processes","to","use",":","param","int","n_prefetch",":","The","number","of","prefetch","to","use",":","param","int","shared_mem",":","How","many","memory","to","share","between","processes",":","param","int","maxtasksperchild",":","Maximum","number","of","tasks","per","child"]
code: def __init__(
      self,
      dataset,
      batch_size,
      repeat=True,
      shuffle=True,
      n_processes=None,
      n_prefetch=1,
      shared_mem=None,
      maxtasksperchild=20,
  ):
      """Init the iterator
  
      :param torch.nn.Tensor dataset: The dataset to take batches from
      :param int batch_size: The batch size
      :param bool repeat: Whether to repeat batches or not (enables multiple epochs)
      :param bool shuffle: Whether to shuffle the order of the batches
      :param int n_processes: How many processes to use
      :param int n_prefetch: The number of prefetch to use
      :param int shared_mem: How many memory to share between processes
      :param int maxtasksperchild: Maximum number of tasks per child
      """
      super(ToggleableShufflingMultiprocessIterator, self).__init__(
          dataset=dataset,
          batch_size=batch_size,
          repeat=repeat,
          shuffle=shuffle,
          n_processes=n_processes,
          n_prefetch=n_prefetch,
          shared_mem=shared_mem,
          maxtasksperchild=maxtasksperchild,
      )
  
file_path: espnet/espnet/utils/training/iterators.py
imports: import chainer
  import numpy
  from chainer.iterators import MultiprocessIterator, SerialIterator, ShuffleOrderSampler
  from chainer.training.extension import Extension
label_desc: Use image node_id 1 to create a new ToggleableShufflingMultiprocessIterator object from inherited base classes: MultiprocessIterator with example: obj = ToggleableShufflingMultiprocessIterator(dataset, batch_size, repeat, shuffle, n_processes, n_prefetch, shared_mem, maxtasksperchild)