Skip to content

Sort sequences internally in pack_padded_sequence #3584

@colesbury

Description

@colesbury

Currently, pack_padded_sequence requires the caller to sort inputs by the length (descending). We should sort and reorder the input internally if it's not already sorted. We can then restore the original order in pad_packed_sequence.

cc @kyunghyuncho

Metadata

Metadata

Assignees

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