rwth-i6 / i6_models

Collection of NN-Model parts
Mozilla Public License 2.0
1 stars 0 forks source link

correct device for pos_emb #60

Closed JackTemaki closed 1 month ago

JackTemaki commented 1 month ago

Follow-up for #55

When using the Transformer-XL style (learnable_pos_emb=False) the device for the sinusoidal embedding was not correctly set, causing a device mismatch when training on GPU.