Idk how r you going to set values to zero if u don’t know where the values are. You can check torch.masked_select, but i’m quite sure u need to know what to mask. Just curious, are you doing ASR?


u have to pad them into a bigger tensor, u can’t even feed it into rnn if u don’t pad