class_docstr: Global Style Token Module for factorizing prosody in speech.
  
  See https://arxiv.org/pdf/1803.09017
class_docstr_tok: ["Global","Style","Token","Module","for","factorizing","prosody","in","speech",".","See","https",":","\/\/arxiv.org\/pdf\/1803.09017"]
code: def __init__(
      self,
      num_mel,
      num_heads,
      num_style_tokens,
      gst_embedding_dim,
      embedded_speaker_dim=None,
  ):
      super().__init__()
      self.encoder = ReferenceEncoder(num_mel, gst_embedding_dim)
      self.style_token_layer = StyleTokenLayer(
          num_heads,
          num_style_tokens,
          gst_embedding_dim,
          embedded_speaker_dim,
      )
  
file_path: TTS/TTS/tts/layers/tacotron/gst_layers.py
imports: import torch
  import torch.nn.functional
  from torch import nn
label_desc: Use image node_id 1 to create a new GST object from inherited base classes: nn with example: obj = GST(num_mel, num_heads, num_style_tokens, gst_embedding_dim, embedded_speaker_dim)