You could pad the sequences to the same length e.g. in a custom collate_fn
. Also, take a look at this post which discusses some approaches.
You could pad the sequences to the same length e.g. in a custom collate_fn
. Also, take a look at this post which discusses some approaches.