TransformerDecoder

public struct TransformerDecoder<Element, Device> : LayerType, Codable where Element : RandomizableType, Device : DeviceType

Transformer encoder sequencing positional encoding and token embedding and multiple transformer encoder layers, as introduced by Attention Is All You Need.