MCPcopy Create free account
hub / github.com/Xflick/EEND_PyTorch / PositionalEncoding

Class PositionalEncoding

eend/pytorch_backend/models.py:146–177  ·  view source on GitHub ↗

Inject some information about the relative or absolute position of the tokens in the sequence. The positional encodings have the same dimension as the embeddings, so that the two can be summed. Here, we use sine and cosine functions of different frequencies. .. math::

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected