kiwi.modules.common.positional_encoding
PositionalEncoding
Absolute positional encoding mechanism.
kiwi.modules.common.positional_encoding.
Bases: torch.nn.Module
torch.nn.Module
max_seq_len – hypothetical maximum sequence length (usually 1000).
hidden_size – embeddings size.
forward
batch_size
kiwi.modules.common.layer_norm
kiwi.modules.common.scalar_mix