docstr: Called at the beginning of each epoch (epochs start at 1).
docstr_tok: ["Called","at","the","beginning","of","each","epoch","(","epochs","start","at","1",")","."]
code: def begin_epoch(self, epoch):
      """Called at the beginning of each epoch (epochs start at 1)."""
      if (
          (
              self.epoch_schedule is not None
              and epoch > 0
              and (epoch - 1) % self.epoch_schedule == 0
          )
          # we always step once in the beginning, even if using
          # update-based quantization
          or self.quantization_step == 0
      ):
          self.step()
  
file_path: fairseq/fairseq/quantization_utils.py
imports: import logging
  from fairseq.modules.quantization import pq, quantization_options, scalar
  from omegaconf import DictConfig
label_desc: Use image node_id 4 for calling the Quantizer obj's underlying member method code with example usage: obj.begin_epoch(epoch) without return types