Class EncoderDecoder

All Implemented Interfaces:
Block

public class EncoderDecoder extends AbstractBlock
EncoderDecoder is a general implementation of the very popular encoder-decoder architecture. This class depends on implementations of Encoder and Decoder to provide encoder-decoder architecture for different tasks and inputs such as machine translation(text-text), image captioning(image-text) etc.
  • Field Details

    • encoder

      protected Encoder encoder
    • decoder

      protected Decoder decoder
  • Constructor Details

    • EncoderDecoder

      public EncoderDecoder(Encoder encoder, Decoder decoder)
      Constructs a new instance of EncoderDecoder class with the given Encoder and Decoder.
      Parameters:
      encoder - the Encoder
      decoder - the Decoder
  • Method Details