positionalEncodingBasic
PositionalEncodingBasic
¶
Bases: Module
Source code in spotpython/light/transformer/positionalEncodingBasic.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
__init__(d_model, max_len=5000)
¶
Inputs d_model - Hidden dimensionality of the input. max_len - Maximum length of a sequence to expect.
Source code in spotpython/light/transformer/positionalEncodingBasic.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|