class_docstr: <a id="EncoderDecoder"></a>
  
  ## Combined Encoder-Decoder
code: def encode(self, src: torch.Tensor, src_mask: torch.Tensor):
      return self.encoder(self.src_embed(src), src_mask)
  
imports: import math
  import torch
  import torch.nn
  from labml_nn.utils import clone_module_list
  from .feed_forward import FeedForward
  from .mha import MultiHeadAttention
  from .positional_encoding import get_positional_encoding
label_desc: Use image node_id 3 for calling the EncoderDecoder obj's underlying member method code with example usage: obj.encode(src, src_mask) and returns: self