Skip to content

A problem in the PositionalEncoding model code #42

@kir1to455

Description

@kir1to455

Hi,
Thank you for developing Corigami !
I have encountered some problems when I use corigami to train my data.

image
After the encoder step,here, the transposed matrix is input into attn.
the matrix x is : Tensor, shape [batch_size, seq_lenth, embedding_dim], not Tensor, shape [seq_lenth, batch_size, embedding_dim] !
image
if perform this step: x = x + self.pe[:x.size(0)] will return the wrong location information result.

I think the code may have made an error in transponse after the encoder.
63062fd2a7490cbc735a0d4005c233f

Best wishes,
Kirtio

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions