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 forward(self, inputs, speaker_embedding=None):
      enc_out = self.encoder(inputs)
      # concat speaker_embedding
      if speaker_embedding is not None:
          enc_out = torch.cat([enc_out, speaker_embedding], dim=-1)
      style_embed = self.style_token_layer(enc_out)
  
      return style_embed
  
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 2 for calling the GST obj's underlying member method code with example usage: obj.forward(inputs, speaker_embedding) and returns: style_embed