docstr: Shapes:
      - x: :math:`[B, T_src, C]`
      - mask: :math: `[B]`
      - slf_attn_mask: :math: `[B, 1, 1, T_src]`
      - speaker_embedding: :math: `[B, C]`
      - emotion_embedding: :math: `[B, C]`
      - encoding: :math: `[B, T_max2, C]`
docstr_tok: ["Shapes",":","-","x",":",":","math",":","`","[","B",",","T_src",",","C","]","`","-","mask",":",":","math",":","`","[","B","]","`","-","slf_attn_mask",":",":","math",":","`","[","B",",","1",",","1",",","T_src","]","`","-","speaker_embedding",":",":","math",":","`","[","B",",","C","]","`","-","emotion_embedding",":",":","math",":","`","[","B",",","C","]","`","-","encoding",":",":","math",":","`","[","B",",","T_max2",",","C","]","`"]
code: def forward(
      self,
      x: torch.Tensor,
      speaker_embedding: torch.Tensor,
      mask: torch.Tensor,
      slf_attn_mask: torch.Tensor,
      encoding: torch.Tensor,
  ) -> torch.Tensor:
      """
      Shapes:
          - x: :math:`[B, T_src, C]`
          - mask: :math: `[B]`
          - slf_attn_mask: :math: `[B, 1, 1, T_src]`
          - speaker_embedding: :math: `[B, C]`
          - emotion_embedding: :math: `[B, C]`
          - encoding: :math: `[B, T_max2, C]`
      """
      if speaker_embedding is not None:
          x = self.conditioning(x, embeddings=speaker_embedding)
      x = self.ff(x) + x
      x = self.conformer_conv_1(x) + x
      res = x
      x = self.ln(x)
      x, _ = self.slf_attn(
          query=x, key=x, value=x, mask=slf_attn_mask, encoding=encoding
      )
      x = x + res
      x = x.masked_fill(mask.unsqueeze(-1), 0)
  
      x = self.conformer_conv_2(x) + x
      return x
  
imports: import math
  from typing import Tuple
  import torch
  import torch.nn
  import torch.nn.functional
  from TTS.tts.layers.delightful_tts.conv_layers import Conv1dGLU, DepthWiseConv1d, PointwiseConv1d
  from TTS.tts.layers.delightful_tts.networks import GLUActivation
label_desc: Use image node_id 2 for calling the ConformerBlock obj's underlying member method code with example usage: obj.forward(x, speaker_embedding, mask, slf_attn_mask, encoding) and returns: x