Module codec

Source
Expand description

§Codec

The codec module implements the Decoder and Encoder layers of the Transformer model. Each layer has two sublayers, namely:

  • multi-head, self-attention layer
  • fully-connected, piecewise feed-forward network.

Re-exports§

pub use self::decoder::Decoder;
pub use self::encoder::Encoder;

Modules§

decoder
encoder

Structs§

Codec
CodecBuilder
Context
Generator