class_docstr: Defines the capacitron VAE Module
  Args:
      capacitron_capacity (int):
          Defines the variational capacity limit of the prosody embeddings. Defaults to 150.
      capacitron_VAE_embedding_dim (int):
          Defines the size of the Capacitron embedding vector dimension. Defaults to 128.
      capacitron_use_text_summary_embeddings (bool):
          If True, use a text summary embedding in Capacitron. Defaults to True.
      capacitron_text_summary_embedding_dim (int):
          Defines the size of the capacitron text embedding vector dimension. Defaults to 128.
      capacitron_use_speaker_embedding (bool):
          if True use speaker embeddings in Capacitron. Defaults to False.
      capacitron_VAE_loss_alpha (float):
          Weight for the VAE loss of the Tacotron model. If set less than or equal to zero, it disables the
          corresponding loss function. Defaults to 0.25
      capacitron_grad_clip (float):
          Gradient clipping value for all gradients except beta. Defaults to 5.0
class_docstr_tok: ["Defines","the","capacitron","VAE","Module","Args",":","capacitron_capacity","(","int",")",":","Defines","the","variational","capacity","limit","of","the","prosody","embeddings",".","Defaults","to","150.","capacitron_VAE_embedding_dim","(","int",")",":","Defines","the","size","of","the","Capacitron","embedding","vector","dimension",".","Defaults","to","128.","capacitron_use_text_summary_embeddings","(","bool",")",":","If","True",",","use","a","text","summary","embedding","in","Capacitron",".","Defaults","to","True",".","capacitron_text_summary_embedding_dim","(","int",")",":","Defines","the","size","of","the","capacitron","text","embedding","vector","dimension",".","Defaults","to","128.","capacitron_use_speaker_embedding","(","bool",")",":","if","True","use","speaker","embeddings","in","Capacitron",".","Defaults","to","False",".","capacitron_VAE_loss_alpha","(","float",")",":","Weight","for","the","VAE","loss","of","the","Tacotron","model",".","If","set","less","than","or","equal","to","zero",",","it","disables","the","corresponding","loss","function",".","Defaults","to","0.25","capacitron_grad_clip","(","float",")",":","Gradient","clipping","value","for","all","gradients","except","beta",".","Defaults","to","5.0"]
docstr: Check config fields
docstr_tok: ["Check","config","fields"]
code: def check_values(
      self,
  ):
      """Check config fields"""
      c = asdict(self)
      super().check_values()
      check_argument(
          "capacitron_capacity",
          c,
          restricted=True,
          min_val=10,
          max_val=500,
      )
      check_argument(
          "capacitron_VAE_embedding_dim",
          c,
          restricted=True,
          min_val=16,
          max_val=1024,
      )
      check_argument(
          "capacitron_use_speaker_embedding", c, restricted=False
      )
      check_argument(
          "capacitron_text_summary_embedding_dim",
          c,
          restricted=False,
          min_val=16,
          max_val=512,
      )
      check_argument("capacitron_VAE_loss_alpha", c, restricted=False)
      check_argument("capacitron_grad_clip", c, restricted=False)
  
file_path: TTS/TTS/tts/configs/shared_configs.py
imports: from dataclasses import asdict, dataclass, field
  from typing import Dict, List
  from coqpit import Coqpit, check_argument
  from TTS.config import BaseAudioConfig, BaseDatasetConfig, BaseTrainingConfig
label_desc: Use image node_id 1 for calling the CapacitronVAEConfig obj's underlying member method code with example usage: obj.check_values() without return types