Skip to content

"Position numbers begin at padding_idx+1." #1177

Closed
@leimao

Description

Hi,
This might not be an issue but a general question. In make_positions,
https://github.com/pytorch/fairseq/blob/ba5f829f64d2adf9de4502dab94abf0a1a54106b/fairseq/utils.py#L168
Why the token positions "begin at padding_idx+1"? Can someone justify this? Thank you.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions