Skip to content

Simplify LearnedPositionalEmbedding #5188

Closed

Description

@sshleifer

create_position_ids_from_input_ids and LearnedPositionalEmbedding
were both copied from fairseq and need either much more documentation or much simpler logic. They were originally copied for Roberta and now are also used for bart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions