sequences = torch.vstack(samples). lengths = torch.Tensor(np.array([len(sequence) for sequence in sequences_tensor])).to(torch.int).
確定! 回上一頁