class_docstr: Base class shared by Tacotron and Tacotron2
code: def __init__(
      self,
      config: "TacotronConfig",
      ap: "AudioProcessor",
      tokenizer: "TTSTokenizer",
      speaker_manager: SpeakerManager = None,
  ):
      super().__init__(config, ap, tokenizer, speaker_manager)
  
      # pass all config fields as class attributes
      for key in config:
          setattr(self, key, config[key])
  
      # layers
      self.embedding = None
      self.encoder = None
      self.decoder = None
      self.postnet = None
  
      # init tensors
      self.embedded_speakers = None
      self.embedded_speakers_projected = None
  
      # global style token
      if self.gst and self.use_gst:
          self.decoder_in_features += (
              self.gst.gst_embedding_dim
          )  # add gst embedding dim
          self.gst_layer = None
  
      # Capacitron
      if self.capacitron_vae and self.use_capacitron_vae:
          self.decoder_in_features += (
              self.capacitron_vae.capacitron_VAE_embedding_dim
          )  # add capacitron embedding dim
          self.capacitron_vae_layer = None
  
      # additional layers
      self.decoder_backward = None
      self.coarse_decoder = None
  
imports: import copy
  from abc import abstractmethod
  from typing import Dict, Tuple
  import torch
  from coqpit import Coqpit
  from torch import nn
  from TTS.tts.layers.losses import TacotronLoss
  from TTS.tts.models.base_tts import BaseTTS
  from TTS.tts.utils.helpers import sequence_mask
  from TTS.tts.utils.speakers import SpeakerManager
  from TTS.tts.utils.synthesis import synthesis
  from TTS.tts.utils.text.tokenizer import TTSTokenizer
  from TTS.tts.utils.visual import plot_alignment, plot_spectrogram
  from TTS.utils.generic_utils import format_aux_input
  from TTS.utils.io import load_fsspec
  from TTS.utils.training import gradual_training_scheduler
label_desc: Use image node_id 1 to create a new BaseTacotron object from inherited base classes: BaseTTS with example: obj = BaseTacotron(config, ap, tokenizer, speaker_manager)