class_docstr: Encoder Block
class_docstr_tok: ["Encoder","Block"]
docstr: Forward Pass
docstr_tok: ["Forward","Pass"]
code: def forward(self, x, mask=None, pos=None):
      """Forward Pass"""
      x = self.attention_sublayer(x, mask, pos, sublayer=self.attention)
  
      x = self.position_sublayer(x, sublayer=self.position_wise)
  
      return x
  
file_path: life2vec/src/transformer/modules.py
imports: import torch
  import torch.nn
  import math
  import time
  from src.transformer.attention import MultiHeadAttention
  from src.transformer.transformer_utils import *
  import logging
label_desc: Use image node_id 3 for calling the EncoderLayer obj's underlying member method code with example usage: obj.forward(x, mask, pos) and returns: x