fix pack_padded_sequence()
Hi! It seems like for pytorch 1.7.0, pack_padded_sequence's src_length must be in cpu, even if we're using cuda: https://github.com/pytorch/pytorch/issues/43227 I also tried this command in pytorch 1.6.0 to check for backward compatibility and there it works fine, both with and without adding .cpu()
Loading
Please register or sign in to comment