Skip to content

planning_decoder.py repeat should be repeat_interleave #38

Description

@sherlockzhmh

tgt2, tgt2, tgt2, key_padding_mask=tgt_key_padding_mask.repeat(M, 1)

Image

The size of tgt2 dim 0, though equals to the size of tgt_key_padding_mask dim 0, the layouts of inner data are not the same.

tgt2: bs * M, first M elements are of the first sample,

tgt_key_padding_mask: bs * M, first M elements may comes from different samples,

should use repeat_interleave instead of repeat.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions