Skip to content

replace torch.arange(...) with lookup #3

@YYYasin19

Description

@YYYasin19

Currently the pos. embeddings are always re-calculated with torch.arange which can easily be replaced by an initial tensor that is then indexed everytime

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