Deep learning layers
EDS-PDF provides a set of specialized deep learning layers that can be used to build trainable components. These layers are built on top of the PyTorch framework and can be used in any PyTorch model.
Layer | Description |
---|---|
BoxTransformerModule |
Contextualize box embeddings with a 2d Transformer with relative position representations |
BoxTransformerLayer |
A single layer of the above BoxTransformerModule layer |
RelativeAttention |
A 2d attention layer that optionally uses relative position to compute its attention scores |
SinusoidalEmbedding |
A position embedding that uses trigonometric functions to encode positions |
Vocabulary |
A non deep learning layer to encodes / decode vocabularies |