Stable-Pix2Seq icon indicating copy to clipboard operation
Stable-Pix2Seq copied to clipboard

details of transformer code

Open lumiaomiao opened this issue 3 years ago • 0 comments

Thank you for your work, I have a question about sequence embedding. The screenshot is from transformer.py When you get sequence embedding, the position embedding has already been added to sequence embedding as fllows: image Why do you input the same position embedding into decoder layer ? After this operation, position embedding is added to sequence embedding twice. image

lumiaomiao avatar Nov 18 '21 03:11 lumiaomiao