June 1, 2023, 8:36 a.m. | /u/Calcifer777

Deep Learning www.reddit.com

Hi all, I'm trying to create a seq2seq model with attention and I'm a bit stuck in the decoder implementation.

I have the encoder embeddings with dimension (N, L\_e, E) and the decoder inputs with dimension (N, L\_d, E). N is the batch size; L\_e, L\_d are the encoder and decoder sequence lengths; and E is the embedding size.

I'm working in PyTorch; I would like to apply a nn.MultiHeadAttention layer to the encoder embeddings and pass them to the …

attention decoder deeplearning embeddings encoder implementation seq2seq

Senior Machine Learning Engineer

@ GPTZero | Toronto, Canada

ML/AI Engineer / NLP Expert - Custom LLM Development (x/f/m)

@ HelloBetter | Remote

Doctoral Researcher (m/f/div) in Automated Processing of Bioimages

@ Leibniz Institute for Natural Product Research and Infection Biology (Leibniz-HKI) | Jena

Seeking Developers and Engineers for AI T-Shirt Generator Project

@ Chevon Hicks | Remote

Principal Data Architect - Azure & Big Data

@ MGM Resorts International | Home Office - US, NV

GN SONG MT Market Research Data Analyst 11

@ Accenture | Bengaluru, BDC7A