Skip to content

about the pack&pad operation #12

@guofei1989

Description

@guofei1989

Hi, sgrvinod, I've learned a lot from your tutorials.

The usage of pack&pad operation can eliminate redundant padding calculations in the sequence, which is verified by the tutorial. But I'm curious about how to deal with it if a CNN layer is concatenated after it ?

If we just pad_packed_sequence the packed results from RNN/linear layers, then how can we deal with the padding=0? Use another mask operation or any other methods?

Hope for your reply, thanks!

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