Skip to content

src_mask in TransformerEncoder #18

Description

@xiangzai0115

Hi,

Thanks again for this amazing work.

I do have a question regarding the position of src_mask in model.py. I think this should be done after src rnn padding, right? Since the each sequence in src input might be with different length and input src is actually a list of sequence which cannot use src.size(1) to get the sequence length.

Looking forward to your reply. Thanks!

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