class_docstr: The Brain implementation for Tacotron2
class_docstr_tok: ["The","Brain","implementation","for","Tacotron2"]
docstr: Gets called at the beginning of ``fit()``, on multiple processes
  if ``distributed_count > 0`` and backend is ddp and initializes statistics
docstr_tok: ["Gets","called","at","the","beginning","of","``","fit","(",")","``",",","on","multiple","processes","if","``","distributed_count",">","0","``","and","backend","is","ddp","and","initializes","statistics"]
code: def on_fit_start(self):
      """Gets called at the beginning of ``fit()``, on multiple processes
      if ``distributed_count > 0`` and backend is ddp and initializes statistics
      """
      self.hparams.progress_sample_logger.reset()
      self.last_epoch = 0
      self.last_batch = None
      self.last_loss_stats = {}
      return super().on_fit_start()
  
file_path: speechbrain/recipes/LJSpeech/TTS/tacotron2/train.py
imports: import torch
  import speechbrain
  import sys
  import logging
  from hyperpyyaml import load_hyperpyyaml
  from speechbrain.utils.text_to_sequence import text_to_sequence
  from speechbrain.utils.data_utils import scalarize
label_desc: Use image node_id 1 for calling the Tacotron2Brain obj's underlying member method code with example usage: obj.on_fit_start() and returns: super