Skip to content

Mask padding values '_' for input sequences #11

Description

@denisbeslic

The padding value '_' is used to fit sequences into fixed-length batches, but it’s unnecessary for the model to "learn" that this should always be zero. Instead, we should explicitly handle it.

For example, we could mask padding in the model workflow to ignore it during training/inference.
Otherwise, we could also set padding to zero during length regulation so it "vanishes."

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions