Skip to content

No relative position embedding? #4

@BrandonHanx

Description

@BrandonHanx

Hi, @leaderj1001

Thanks for your code. However, I am a little bit confused about this line

lambda_p = torch.einsum('ku,bvun->bkvn', self.embedding, values)

It seems like did not use relative position embedding when strategy is not local context. What's the meaning of this line?

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